mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/avatars] Use empty() instead of sizeof()
PHPBB3-10018
This commit is contained in:
parent
41710c745d
commit
8867cb60b1
2 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ class acp_board
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (sizeof($avatar_vars))
|
if (!empty($avatar_vars))
|
||||||
{
|
{
|
||||||
$display_vars['vars'] += $avatar_vars;
|
$display_vars['vars'] += $avatar_vars;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1837,7 +1837,7 @@ class acp_users
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'S_AVATAR' => true,
|
'S_AVATAR' => true,
|
||||||
'ERROR' => (sizeof($error)) ? implode('<br />', $error) : '',
|
'ERROR' => (!empty($error)) ? implode('<br />', $error) : '',
|
||||||
'AVATAR' => (empty($avatar) ? '<img src="' . $phpbb_admin_path . 'images/no_avatar.gif" alt="" />' : $avatar),
|
'AVATAR' => (empty($avatar) ? '<img src="' . $phpbb_admin_path . 'images/no_avatar.gif" alt="" />' : $avatar),
|
||||||
|
|
||||||
'S_FORM_ENCTYPE' => ' enctype="multipart/form-data"',
|
'S_FORM_ENCTYPE' => ' enctype="multipart/form-data"',
|
||||||
|
|
Loading…
Add table
Reference in a new issue