mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15233] Normalize empty avatar array
PHPBB3-15233
This commit is contained in:
parent
a9b63a4724
commit
3796a4207f
1 changed files with 9 additions and 1 deletions
|
@ -105,7 +105,15 @@ class helper
|
|||
{
|
||||
if (!$this->config['allow_avatar'] && !$ignore_config)
|
||||
{
|
||||
return [];
|
||||
return [
|
||||
'html' => '',
|
||||
'lazy' => false,
|
||||
'src' => '',
|
||||
'title' => '',
|
||||
'type' => '',
|
||||
'width' => 0,
|
||||
'height' => 0,
|
||||
];
|
||||
}
|
||||
|
||||
$data = [
|
||||
|
|
Loading…
Add table
Reference in a new issue