]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix the case of a call to sameAs()
authorMartin Lyth <bsfmartini@gmail.com>
Sat, 2 Jul 2016 21:43:47 +0000 (17:43 -0400)
committerMartin Lyth <bsfmartini@gmail.com>
Sat, 2 Jul 2016 21:43:47 +0000 (17:43 -0400)
classes/Profile.php

index b557e3088c51761822bbb5bd8905101b87b43527..da01213d718b210d137350d9aed2c645bc20390d 100644 (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);