diff --git a/phpBB/phpbb/avatar/helper.php b/phpBB/phpbb/avatar/helper.php index 0638f1f69c..2780fe3c57 100644 --- a/phpBB/phpbb/avatar/helper.php +++ b/phpBB/phpbb/avatar/helper.php @@ -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 = [