aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rw-r--r--install/upgrade.php15
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;
}
}