From: Evan Prodromou Date: Mon, 18 Apr 2011 20:59:17 +0000 (-0400) Subject: don't show display URL if avatar filename is missing X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=21c16b2e92fc8ffff837e3fece295d734307d49b;p=quix0rs-gnu-social.git don't show display URL if avatar filename is missing --- diff --git a/classes/Avatar.php b/classes/Avatar.php index 34ec4a3caf..0b5141ba53 100644 --- a/classes/Avatar.php +++ b/classes/Avatar.php @@ -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;