diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index 932262a0..e6c84438 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -3518,7 +3518,7 @@ class File_X509 $altName = array(); - if (isset($subject->domains) && count($subject->domains) > 1) { + if (isset($subject->domains) && count($subject->domains)) { $altName = array_map(array('File_X509', '_dnsName'), $subject->domains); }