diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2007-08-05 16:14:23 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2007-08-05 16:14:23 +0000 |
commit | 7693609d0cdf434950e74e109d483637c60e8acf (patch) | |
tree | cded7aa7ca5b65d45d08630ae04bd8afb33eff69 /phpBB | |
parent | 65abb76a8cfade8d541a8d956001836f00c212ab (diff) | |
download | forums-7693609d0cdf434950e74e109d483637c60e8acf.tar forums-7693609d0cdf434950e74e109d483637c60e8acf.tar.gz forums-7693609d0cdf434950e74e109d483637c60e8acf.tar.bz2 forums-7693609d0cdf434950e74e109d483637c60e8acf.tar.xz forums-7693609d0cdf434950e74e109d483637c60e8acf.zip |
hrm
git-svn-id: file:///svn/phpbb/trunk@8008 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/functions_user.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index e7d4cd7259..2eafbf4b8a 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -2772,8 +2772,11 @@ function remove_default_avatar($group_id, $user_ids) $result = $db->sql_query($sql); if (!$row = $db->sql_fetchrow($result)) { + $db->sql_freeresult($result); return false; } + $db->sql_freeresult($result); + $sql = 'UPDATE ' . USERS_TABLE . ' SET user_avatar = \'\', user_avatar_type = 0, @@ -2810,9 +2813,10 @@ function remove_default_rank($group_id, $user_ids) $result = $db->sql_query($sql); if (!$row = $db->sql_fetchrow($result)) { + $db->sql_freeresult($result); return false; } - + $db->sql_freeresult($result); $sql = 'UPDATE ' . USERS_TABLE . ' SET user_rank = 0 |