From 3796a4207f3ed422795505538e3b41c40f64debf Mon Sep 17 00:00:00 2001 From: mrgoldy Date: Tue, 17 Dec 2019 20:37:10 +0100 Subject: [PATCH] [ticket/15233] Normalize empty avatar array PHPBB3-15233 --- phpBB/phpbb/avatar/helper.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 = [