don't show display URL if avatar filename is missing
This commit is contained in:
parent
2757bd8428
commit
21c16b2e92
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user