aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-02-20 15:24:31 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-02-20 15:24:31 +0000
commit5de69acfe2e6255054532c3b120c6fa629da6118 (patch)
tree309aa34c648ff154a6b61dc4ee14c25bd6e55707 /phpBB/includes/functions_admin.php
parent2a0425ffca5d939825ab5389ced9235cbe192e49 (diff)
downloadforums-5de69acfe2e6255054532c3b120c6fa629da6118.tar
forums-5de69acfe2e6255054532c3b120c6fa629da6118.tar.gz
forums-5de69acfe2e6255054532c3b120c6fa629da6118.tar.bz2
forums-5de69acfe2e6255054532c3b120c6fa629da6118.tar.xz
forums-5de69acfe2e6255054532c3b120c6fa629da6118.zip
#8194
git-svn-id: file:///svn/phpbb/trunk@7024 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 357555b170..19a7a126c0 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -2685,14 +2685,14 @@ function tidy_warnings()
$expire_date = time() - ($config['warnings_expire_days'] * 86400);
$warning_list = $user_list = array();
- $sql = 'SELECT * FROM ' . WARNINGS_TABLE . "
- WHERE warning_time < $expire_date";
+ $sql = 'SELECT * FROM ' . WARNINGS_TABLE;/* . "
+ WHERE warning_time < $expire_date";*/
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
$warning_list[] = $row['warning_id'];
- $user_list[$row['user_id']] = isset($user_list[$row['user_id']]) ? $user_list[$row['user_id']]++ : 1;
+ $user_list[$row['user_id']] = isset($user_list[$row['user_id']]) ? ++$user_list[$row['user_id']] : 1;
}
$db->sql_freeresult($result);
@@ -2708,6 +2708,7 @@ function tidy_warnings()
{
$sql = 'UPDATE ' . USERS_TABLE . " SET user_warnings = user_warnings - $value
WHERE user_id = $user_id";
+ var_dump($sql);
$db->sql_query($sql);
}