1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-25 19:11:47 +02:00

[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

View File

@@ -105,7 +105,15 @@ class helper
{ {
if (!$this->config['allow_avatar'] && !$ignore_config) if (!$this->config['allow_avatar'] && !$ignore_config)
{ {
return []; return [
'html' => '',
'lazy' => false,
'src' => '',
'title' => '',
'type' => '',
'width' => 0,
'height' => 0,
];
} }
$data = [ $data = [