aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-10-24 21:41:41 +0200
committerMarc Alexander <admin@m-a-styles.de>2013-10-24 21:41:41 +0200
commit1f624e136785893d0c9e4bfeb1a12f9c08693a24 (patch)
treefc64e1a6565cfed3fbd76dd2b385029ec333b925 /phpBB/includes/functions_user.php
parent3c632fa8e4af4b9b666ddbab2de77d42716ce2b2 (diff)
downloadforums-1f624e136785893d0c9e4bfeb1a12f9c08693a24.tar
forums-1f624e136785893d0c9e4bfeb1a12f9c08693a24.tar.gz
forums-1f624e136785893d0c9e4bfeb1a12f9c08693a24.tar.bz2
forums-1f624e136785893d0c9e4bfeb1a12f9c08693a24.tar.xz
forums-1f624e136785893d0c9e4bfeb1a12f9c08693a24.zip
[ticket/11842] Replace outdated occurences of user and group avatar_type
user_avatar_type und group_avatar_type are now a string and should therefore be treated accordingly. PHPBB3-11842
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 475f59da1d..9e84af5c28 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -213,7 +213,7 @@ function user_add($user_row, $cp_data = false)
'user_occ' => '',
'user_interests' => '',
'user_avatar' => '',
- 'user_avatar_type' => 0,
+ 'user_avatar_type' => '',
'user_avatar_width' => 0,
'user_avatar_height' => 0,
'user_new_privmsg' => 0,
@@ -463,7 +463,7 @@ function user_delete($mode, $user_ids, $retain_username = true)
$added_guest_posts = 0;
foreach ($user_rows as $user_id => $user_row)
{
- if ($user_row['user_avatar'] && $user_row['user_avatar_type'] == AVATAR_UPLOAD)
+ if ($user_row['user_avatar'] && ($user_row['user_avatar_type'] == AVATAR_UPLOAD || $user_row['user_avatar_type'] == 'avatar.driver.upload'))
{
avatar_delete('user', $user_row);
}
@@ -2415,7 +2415,7 @@ function avatar_remove_db($avatar_name)
$sql = 'UPDATE ' . USERS_TABLE . "
SET user_avatar = '',
- user_avatar_type = 0
+ user_avatar_type = ''
WHERE user_avatar = '" . $db->sql_escape($avatar_name) . '\'';
$db->sql_query($sql);
}
@@ -2825,7 +2825,7 @@ function remove_default_avatar($group_id, $user_ids)
$sql = 'UPDATE ' . USERS_TABLE . "
SET user_avatar = '',
- user_avatar_type = 0,
+ user_avatar_type = '',
user_avatar_width = 0,
user_avatar_height = 0
WHERE group_id = " . (int) $group_id . "
@@ -3083,7 +3083,7 @@ function group_set_user_default($group_id, $user_id_ary, $group_attributes = fal
'group_colour' => 'string',
'group_rank' => 'int',
'group_avatar' => 'string',
- 'group_avatar_type' => 'int',
+ 'group_avatar_type' => 'string',
'group_avatar_width' => 'int',
'group_avatar_height' => 'int',
);