diff options
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 7cceda0dd2..e9297d490f 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -825,6 +825,9 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas AND ban_exclude = $ban_exclude"; $result = $db->sql_query($sql); + // Reset $sql_where, because we use it later... + $sql_where = ''; + if ($row = $db->sql_fetchrow($result)) { $banlist_ary_tmp = array(); |