]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't show display URL if avatar filename is missing
authorEvan Prodromou <evan@status.net>
Mon, 18 Apr 2011 20:59:17 +0000 (16:59 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 18 Apr 2011 20:59:17 +0000 (16:59 -0400)
classes/Avatar.php

index 34ec4a3cafc6cd8ecdfe42a82972a4d03c00738e..0b5141ba53965420a4de1c9070118888c717fbd5 100644 (file)
@@ -102,7 +102,7 @@ class Avatar extends Memcached_DataObject
     function displayUrl()
     {
         $server = common_config('avatar', 'server');
-        if ($server) {
+        if ($server && !empty($this->filename)) {
             return Avatar::url($this->filename);
         } else {
             return $this->url;