From 21c16b2e92fc8ffff837e3fece295d734307d49b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 18 Apr 2011 16:59:17 -0400 Subject: [PATCH] don't show display URL if avatar filename is missing --- classes/Avatar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5