]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/QnA/actions/qnashowquestion.php
Properly unlink all old avatars when deleting/uploading a new
[quix0rs-gnu-social.git] / plugins / QnA / actions / qnashowquestion.php
index f030efadb2b28fba620457dfda5e135f47d09696..cc8f98448aa1e259f4d14bb96aba31ad43999cd3 100644 (file)
@@ -90,7 +90,11 @@ class QnashowquestionAction extends ShownoticeAction
             throw new ServerException(_m('User without a profile.'));
         }
 
-        $this->avatar = $this->profile->getAvatar(AVATAR_PROFILE_SIZE);
+        try {
+            $this->avatar = $this->profile->getAvatar(AVATAR_PROFILE_SIZE);
+        } catch (Exception $e) {
+            $this->avatar = null;
+        }
 
         return true;
     }