22 lines
809 B
Diff
22 lines
809 B
Diff
From 25469cb98fa689779e857b446dd2084c1d3874d1 Mon Sep 17 00:00:00 2001
|
|
From: Remi Collet <remi@remirepo.net>
|
|
Date: Fri, 21 Jun 2019 09:25:24 +0200
|
|
Subject: [PATCH] fix compat with 5.3
|
|
|
|
---
|
|
phpseclib/Math/BigInteger.php | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php
|
|
index 57e14d2f9..ca1312077 100644
|
|
--- a/phpseclib/Math/BigInteger.php
|
|
+++ b/phpseclib/Math/BigInteger.php
|
|
@@ -1561,7 +1561,7 @@ function divide($y)
|
|
$temp_value = array($quotient_value[$q_index]);
|
|
$temp = $temp->multiply($y);
|
|
$temp_value = &$temp->value;
|
|
- if ($temp_value !== []) {
|
|
+ if ($temp_value !== array()) {
|
|
$temp_value = array_merge($adjust, $temp_value);
|
|
}
|
|
|