forked from GNUsocial/gnu-social
Fix the case of a call to sameAs()
This commit is contained in:
parent
c9afdae01c
commit
b0204023c0
@ -90,7 +90,7 @@ class Profile extends Managed_DataObject
|
||||
{
|
||||
if (!isset($this->_user[$this->id])) {
|
||||
$cur_user = common_current_user();
|
||||
if (($cur_user instanceof User) && $cur_user->sameAS($this)) {
|
||||
if (($cur_user instanceof User) && $cur_user->sameAs($this)) {
|
||||
$user = $cur_user;
|
||||
} else {
|
||||
$user = User::getKV('id', $this->id);
|
||||
|
Loading…
Reference in New Issue
Block a user