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);
}