From 20592f184d759c3e6f68165ea7b94a330853eaef Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 14 Dec 2015 21:44:59 +0100 Subject: [PATCH] getID() will complain loudly if something is wrong (just ->id would not) --- classes/Profile.php | 6 +++--- plugins/Share/SharePlugin.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/Profile.php b/classes/Profile.php index 2ed48c2b45..78ef18484c 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -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 +} diff --git a/plugins/Share/SharePlugin.php b/plugins/Share/SharePlugin.php index afee7a6ef3..84174a0440 100644 --- a/plugins/Share/SharePlugin.php +++ b/plugins/Share/SharePlugin.php @@ -371,4 +371,4 @@ class SharePlugin extends ActivityVerbHandlerPlugin return true; } -} \ No newline at end of file +} -- 2.39.5