aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/database_update.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-02-06 19:09:43 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-02-06 19:09:43 +0000
commit333b3515ed1e94dba1593b2eb3f9fb9d5a1f1440 (patch)
tree08a84c7c140f482b7e7917acc6bc6480e5b0ff43 /phpBB/install/database_update.php
parent10f775cb1cc44b083373543a6c08214d1dd291f0 (diff)
downloadforums-333b3515ed1e94dba1593b2eb3f9fb9d5a1f1440.tar
forums-333b3515ed1e94dba1593b2eb3f9fb9d5a1f1440.tar.gz
forums-333b3515ed1e94dba1593b2eb3f9fb9d5a1f1440.tar.bz2
forums-333b3515ed1e94dba1593b2eb3f9fb9d5a1f1440.tar.xz
forums-333b3515ed1e94dba1593b2eb3f9fb9d5a1f1440.zip
Some... fixes... laying around here.
git-svn-id: file:///svn/phpbb/trunk@6970 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/database_update.php')
-rw-r--r--phpBB/install/database_update.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index b68eab59be..0e4b0381f0 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -1354,12 +1354,15 @@ function add_bots()
WHERE bot_id $sql_id";
$db->sql_query($sql);
- $_tables = array(USERS_TABLE, USER_GROUP_TABLE);
- foreach ($_tables as $table)
+ if (sizeof($user_id_ary))
{
- $sql = "DELETE FROM $table
- WHERE " . $db->sql_in_set('user_id', $user_id_ary);
- $db->sql_query($sql);
+ $_tables = array(USERS_TABLE, USER_GROUP_TABLE);
+ foreach ($_tables as $table)
+ {
+ $sql = "DELETE FROM $table
+ WHERE " . $db->sql_in_set('user_id', $user_id_ary);
+ $db->sql_query($sql);
+ }
}
}
else