From bfd17863a94324dba8e9be74b03368cb3b3b5e98 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Fri, 23 Oct 2009 09:50:03 +0000 Subject: [PATCH] Fixed pre_check. --- sql/alter2.2.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sql/alter2.2.php b/sql/alter2.2.php index cf417ce3..cfc914aa 100644 --- a/sql/alter2.2.php +++ b/sql/alter2.2.php @@ -103,7 +103,9 @@ class fa2_2 { if ($this->beta && !$force) $this->sql = 'alter2.2rc.sql'; - return $this->beta || !check_table($pref, 'usersonline'); + // return ok when security groups still defined (upgrade from 2.1) + // or usersonline not defined (upgrade from 2.2 beta) + return isset($security_groups) || (check_table($pref, 'usersonline')!=0); } // // Test if patch was applied before. -- 2.30.2