diff --git a/lib/classes/Avatar.class.php b/lib/classes/Avatar.class.php
index dab3f75ec3e3ac4f982e1d14d1738f74bb0dc2c6..f9866cf394029d0ef42a411f8fcace36919b4150 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']);