diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-09-22 09:31:11 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-09-22 09:31:11 +0200 |
commit | ff767a14ff7675fce7b23b918f41fa92157dd0c0 (patch) | |
tree | f7a1ed9a6c7d5ec02e967278ff6301019258ead5 /bin/deluser.sh | |
parent | 13bbcd0f59ef7a4459a6909079f0a558913e808a (diff) | |
parent | abc00f27c5d923a02c946a634e158dfe9f20974e (diff) |
Merge branch 'oracle'
Diffstat (limited to 'bin/deluser.sh')
-rwxr-xr-x | bin/deluser.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/deluser.sh b/bin/deluser.sh index f12ec9032..9504d5b43 100755 --- a/bin/deluser.sh +++ b/bin/deluser.sh @@ -91,7 +91,7 @@ if ($plugin['abort']) { // deleting the user record should be sufficient due to ON DELETE CASCADE foreign key references // but not all database backends actually support this so let's do it by hand foreach (array('identities','contacts','contactgroups','dictionaries','cache','cache_index','cache_messages','cache_thread','searches','users') as $table) { - $db->query('DELETE FROM ' . $db->table_name($table) . ' WHERE user_id=?', $user->ID); + $db->query('DELETE FROM ' . $db->table_name($table, true) . ' WHERE `user_id` = ?', $user->ID); } if ($db->is_error()) { |