diff --git a/phpseclib/Math/BigInteger/Engines/PHP.php b/phpseclib/Math/BigInteger/Engines/PHP.php index 39c8ac8f..562be40e 100644 --- a/phpseclib/Math/BigInteger/Engines/PHP.php +++ b/phpseclib/Math/BigInteger/Engines/PHP.php @@ -630,7 +630,7 @@ abstract class PHP extends Engine $temp_value = [$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); }