diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-05-12 13:35:35 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-05-12 13:35:35 +0000 |
| commit | 5ee338926e606a0c755b5cdeb36b40addfb72dc2 (patch) | |
| tree | 6015c2b942cfb468c4a68d2b89f3c00e57e41346 /lib/classes | |
| parent | db07cf0acccee931587a1ac84cbbaed58c477ea4 (diff) | |
ensure title is set before adding
Closes #1051
Merge request studip/studip!614
Diffstat (limited to 'lib/classes')
| -rw-r--r-- | lib/classes/Avatar.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/classes/Avatar.class.php b/lib/classes/Avatar.class.php index dab3f75..f9866cf 100644 --- a/lib/classes/Avatar.class.php +++ b/lib/classes/Avatar.class.php @@ -244,7 +244,7 @@ class Avatar { $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 // all attributes were encoded inside this method) $opt['title'] = html_entity_decode($opt['title']); |
