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()
|
function displayUrl()
|
||||||
{
|
{
|
||||||
$server = common_config('avatar', 'server');
|
$server = common_config('avatar', 'server');
|
||||||
if ($server) {
|
if ($server && !empty($this->filename)) {
|
||||||
return Avatar::url($this->filename);
|
return Avatar::url($this->filename);
|
||||||
} else {
|
} else {
|
||||||
return $this->url;
|
return $this->url;
|
||||||
|
Loading…
Reference in New Issue
Block a user