diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2007-02-06 19:09:43 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-02-06 19:09:43 +0000 |
| commit | 333b3515ed1e94dba1593b2eb3f9fb9d5a1f1440 (patch) | |
| tree | 08a84c7c140f482b7e7917acc6bc6480e5b0ff43 /phpBB/includes/acp/acp_bots.php | |
| parent | 10f775cb1cc44b083373543a6c08214d1dd291f0 (diff) | |
| download | forums-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/includes/acp/acp_bots.php')
| -rw-r--r-- | phpBB/includes/acp/acp_bots.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/phpBB/includes/acp/acp_bots.php b/phpBB/includes/acp/acp_bots.php index 72fb40216d..43984c5a5c 100644 --- a/phpBB/includes/acp/acp_bots.php +++ b/phpBB/includes/acp/acp_bots.php @@ -94,12 +94,15 @@ class acp_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); + } } $db->sql_transaction('commit'); |
