[ticket/15233] Normalize empty avatar array

PHPBB3-15233
This commit is contained in:
mrgoldy 2019-12-17 20:37:10 +01:00 committed by Marc Alexander
parent a9b63a4724
commit 3796a4207f
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -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 = [