mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Fixed non-update of DB when deleting avatar
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3235 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
da84d54cfa
commit
f3242fbc42
1 changed files with 2 additions and 4 deletions
|
@ -380,6 +380,8 @@ if ( isset($HTTP_POST_VARS['submit']) )
|
||||||
rawurlencode($website);
|
rawurlencode($website);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$avatar_sql = '';
|
||||||
|
|
||||||
if ( isset($HTTP_POST_VARS['avatardel']) && $mode == 'editprofile' )
|
if ( isset($HTTP_POST_VARS['avatardel']) && $mode == 'editprofile' )
|
||||||
{
|
{
|
||||||
$avatar_sql = user_avatar_delete($userdata['user_avatar_type'], $userdata['user_avatar']);
|
$avatar_sql = user_avatar_delete($userdata['user_avatar_type'], $userdata['user_avatar']);
|
||||||
|
@ -416,10 +418,6 @@ if ( isset($HTTP_POST_VARS['submit']) )
|
||||||
}
|
}
|
||||||
$avatar_sql = user_avatar_gallery($mode, $error, $error_msg, $user_avatar_local);
|
$avatar_sql = user_avatar_gallery($mode, $error, $error_msg, $user_avatar_local);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$avatar_sql = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( !$error )
|
if ( !$error )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue