aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php6
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