Fix the case of a call to sameAs()

This commit is contained in:
Martin Lyth 2016-07-02 17:43:47 -04:00
parent c9afdae01c
commit b0204023c0

View File

@ -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);