Skip to content
Snippets Groups Projects
Commit 5ee33892 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

ensure title is set before adding

Closes #1051

Merge request studip/studip!614
parent db07cf0a
No related branches found
No related tags found
No related merge requests found
...@@ -244,7 +244,7 @@ class Avatar { ...@@ -244,7 +244,7 @@ class Avatar {
$opt['class'] = $this->getCssClass($size); $opt['class'] = $this->getCssClass($size);
} }
if (isset($opt['title']) && $opt['title'] !== html_entity_decode($opt['title'])) { if (!empty($opt['title']) && $opt['title'] !== html_entity_decode($opt['title'])) {
// Decode already htmlready encoded titles (which were used until // Decode already htmlready encoded titles (which were used until
// all attributes were encoded inside this method) // all attributes were encoded inside this method)
$opt['title'] = html_entity_decode($opt['title']); $opt['title'] = html_entity_decode($opt['title']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment