forked from GNUsocial/gnu-social
Fixed regression in latest Avatar fixes
I thought typing would fix it, but there's a problem earlier in the execution chain which will be fixed in the future.
This commit is contained in:
parent
24e0535001
commit
cced063e47
@ -174,11 +174,13 @@ class Profile extends Managed_DataObject
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function _fillAvatar($width, Avatar $avatar)
|
protected function _fillAvatar($width, $avatar)
|
||||||
{
|
{
|
||||||
// This avoids storing null values, a problem report in issue #3478
|
// This avoids storing null values, a problem report in issue #3478
|
||||||
|
if (!empty($avatar)) {
|
||||||
$this->_avatars[$width] = $avatar;
|
$this->_avatars[$width] = $avatar;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// For backwards compatibility only!
|
// For backwards compatibility only!
|
||||||
public function getOriginalAvatar()
|
public function getOriginalAvatar()
|
||||||
|
Loading…
Reference in New Issue
Block a user