aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-08-09 21:03:46 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-08-09 21:03:46 +0000
commit53085a4c78b3004d1e4adf8e06b0617f7f8a288b (patch)
tree142b5ee82ce545e4c141b87664ec3bad76a8d255 /phpBB/includes/functions_user.php
parentb470f34807dc2e54be72d26ae354ee0be2e1c7dc (diff)
downloadforums-53085a4c78b3004d1e4adf8e06b0617f7f8a288b.tar
forums-53085a4c78b3004d1e4adf8e06b0617f7f8a288b.tar.gz
forums-53085a4c78b3004d1e4adf8e06b0617f7f8a288b.tar.bz2
forums-53085a4c78b3004d1e4adf8e06b0617f7f8a288b.tar.xz
forums-53085a4c78b3004d1e4adf8e06b0617f7f8a288b.zip
- load tracking updates. Need to be tested on a clean installation too - at the moment only tiny quirks are noticed at area51.
- reported bugs fixed git-svn-id: file:///svn/phpbb/trunk@6256 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index ef75b85a48..bc1c41b087 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -809,6 +809,12 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas
$sql = 'DELETE FROM ' . SESSIONS_TABLE . "
$sql_where";
$db->sql_query($sql);
+
+ if ($mode == 'user')
+ {
+ $sql = 'DELETE FROM ' . SESSIONS_KEYS_TABLE . ' ' . ((in_array('*', $banlist_ary)) ? '' : 'WHERE user_id IN (' . implode(', ', $banlist_ary) . ')');
+ $db->sql_query($sql);
+ }
}
}