aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/session.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r--phpBB/includes/session.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index d467633abd..de1ef3aaa8 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -485,8 +485,10 @@ class user extends session
if (empty($imgs[$img]) || $no_cache)
{
+ $alt = (!empty($this->lang[$alt])) ? $this->lang[$alt] : '';
+
$width = ($width) ? 'width="' . $width . '" ' : '';
- $imgs[$img] = '<img src=' . str_replace('{LANG}', $this->img_lang, $this->theme[$img]) . '" ' . $width . 'alt="' . $this->lang[$alt] . '" title="' . $this->lang[$alt] . '" />';
+ $imgs[$img] = '<img src=' . str_replace('{LANG}', $this->img_lang, $this->theme[$img]) . '" ' . $width . 'alt="' . $alt . '" title="' . $alt . '" />';
}
return $imgs[$img];
}