diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index 36ca2c1ae7..950ab868a9 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -773,12 +773,12 @@ class user extends session
$imgsrc = '"' . $phpbb_root_path . 'styles/' . $this->theme['primary']['imageset_path'] . '/imageset/' . str_replace('{LANG}', $this->img_lang, $imgsrc) . '"';
$width = ($width) ? ' width="' . $width . '"' : '';
$height = ($height) ? ' height="' . $height . '"' : '';
- $alt = (!empty($this->lang[$alt])) ? $this->lang[$alt] : $alt;
- $imgs[$img . $suffix] = '
';
+ $imgs[$img . $suffix] = $imgsrc . $width . $height;
}
- return $imgs[$img . $suffix];
+ $alt = (!empty($this->lang[$alt])) ? $this->lang[$alt] : $alt;
+ return '
';
}
// Start code for checking/setting option bit field for user table