1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-11-26 20:35:21 +01:00

BigInteger: the !== [] check only works on PHP 5.4+

This commit is contained in:
terrafrost 2019-06-23 11:12:17 -05:00
parent 61423b217f
commit 4af1bb4c17

View File

@ -1586,7 +1586,7 @@ class Math_BigInteger
$temp_value = array($quotient_value[$q_index]);
$temp = $temp->multiply($y);
$temp_value = &$temp->value;
if ($temp_value !== []) {
if (!count($temp_value)) {
$temp_value = array_merge($adjust, $temp_value);
}