From 4f8eb6d70be0cecee9f4cb0387ec40d1e3588d89 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 6 Feb 2015 10:51:25 +0100 Subject: Fix for 1.0 --- install/upgrade.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'install') diff --git a/install/upgrade.php b/install/upgrade.php index dd2f6b9..d2252cb 100644 --- a/install/upgrade.php +++ b/install/upgrade.php @@ -17,16 +17,19 @@ * along with this program. If not, see . */ +error_reporting(E_ALL); +ini_set('display_errors', 1); + require('../conf.php'); -function lower_version($that, $this) { +function lower_version($that, $new) { $that = explode('.', $that); - $this = explode('.', $this); - while (count($that) < count($this)) $that[] = 0; - while (count($this) < count($that)) $this[] = 0; + $new = explode('.', $new); + while (count($that) < count($new)) $that[] = 0; + while (count($new) < count($that)) $new[] = 0; - for ($i = 0; $i < count($this); $i++) { - if ($this[$i] > $that[$i]) { + for ($i = 0; $i < count($new); $i++) { + if ($new[$i] > $that[$i]) { return true; } } -- cgit v1.2.3