RSA: fix for PHP8

This commit is contained in:
terrafrost 2021-04-03 18:16:59 -05:00
parent 8af4280bde
commit 149b4d2131

View File

@ -3128,7 +3128,9 @@ class Crypt_RSA
}
// Compare
return $this->_equals($em, $em2) || $this->_equals($em, $em3);
return ($em2 !== false && $this->_equals($em, $em2)) ||
($em3 !== false && $this->_equals($em, $em3));
}
/**