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:
@@ -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 = [
|
||||||
|
Reference in New Issue
Block a user