diff options
author | Camil Staps | 2015-02-06 10:51:25 +0100 |
---|---|---|
committer | Camil Staps | 2015-02-06 10:51:25 +0100 |
commit | 4f8eb6d70be0cecee9f4cb0387ec40d1e3588d89 (patch) | |
tree | f972506aa36c332bc05edb71fbb07078697e6b16 /install | |
parent | 0.1 Assign float values to nr. of working hours of assignments (diff) |
Fix for 1.0
Diffstat (limited to 'install')
-rw-r--r-- | install/upgrade.php | 15 |
1 files changed, 9 insertions, 6 deletions
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 <http://www.gnu.org/licenses/>. */ +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; } } |