mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
hrm
git-svn-id: file:///svn/phpbb/trunk@8008 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
65abb76a8c
commit
7693609d0c
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue