aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-04-08 09:32:26 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-04-08 09:32:26 +0000
commit4f5cf86db9fa7f4525480355b73e4f63f321a3fb (patch)
tree5b1a0dba3b136e25d9d76ae88c23f7c16d70a3c6 /phpBB/includes
parent7915732d9a3119cb3ccc204abc6cb3b5c7a429be (diff)
downloadforums-4f5cf86db9fa7f4525480355b73e4f63f321a3fb.tar
forums-4f5cf86db9fa7f4525480355b73e4f63f321a3fb.tar.gz
forums-4f5cf86db9fa7f4525480355b73e4f63f321a3fb.tar.bz2
forums-4f5cf86db9fa7f4525480355b73e4f63f321a3fb.tar.xz
forums-4f5cf86db9fa7f4525480355b73e4f63f321a3fb.zip
I should have sent this in a while ago O_O
git-svn-id: file:///svn/phpbb/trunk@7300 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index a0fb8ddd54..df7a7f794a 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -2545,7 +2545,7 @@ function update_foes($group_id = false, $user_id = false)
{
case 'mysqli':
case 'mysql4':
- $sql = 'DELETE z.*
+ $sql = 'DELETE ' . ($db->sql_layer === 'mysqli' || version_compare($db->mysql_version, '4.1', '>=')) ? ZEBRA_TABLE : 'z.*' . '
FROM ' . ZEBRA_TABLE . ' z, ' . USER_GROUP_TABLE . ' ug
WHERE z.zebra_id = ug.user_id
AND z.foe = 1