don't show display URL if avatar filename is missing

This commit is contained in:
Evan Prodromou 2011-04-18 16:59:17 -04:00
parent 2757bd8428
commit 21c16b2e92

View 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;