]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Profile.php
getID() will complain loudly if something is wrong
[quix0rs-gnu-social.git] / classes / Profile.php
index 2ed48c2b4564f3b32f43337c62fd3c482226bb4d..78ef18484c7e0d9f7c9f2559cb419783f39fd1ad 100644 (file)
@@ -1242,8 +1242,8 @@ class Profile extends Managed_DataObject
     {
         // XXX: not really a pkey, but should work
 
-        $notice = Notice::pkeyGet(array('profile_id' => $this->id,
-                                        'repeat_of' => $notice->id,
+        $notice = Notice::pkeyGet(array('profile_id' => $this->getID(),
+                                        'repeat_of' => $notice->getID(),
                                         'verb' => ActivityVerb::SHARE));
 
         return !empty($notice);
@@ -1663,4 +1663,4 @@ class Profile extends Managed_DataObject
     {
         return $this->getUser()->getConnectedApps($offset, $limit);
     }
-}
\ No newline at end of file
+}