From: Evan Prodromou Date: Fri, 27 Jan 2012 20:27:46 +0000 (-0500) Subject: weird error with SubMirror X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d28f726c5ccef559ff4bbe173786b232be52d5ba;p=quix0rs-gnu-social.git weird error with SubMirror --- diff --git a/plugins/SubMirror/SubMirrorPlugin.php b/plugins/SubMirror/SubMirrorPlugin.php index 95fccabe9d..427153ab22 100644 --- a/plugins/SubMirror/SubMirrorPlugin.php +++ b/plugins/SubMirror/SubMirrorPlugin.php @@ -157,6 +157,10 @@ class SubMirrorPlugin extends Plugin */ function onOstatus_profileSubscriberCount($oprofile, &$count) { + if (empty($oprofile) || !($oprofile instanceof Ostatus_profile)) { + return true; + } + if ($oprofile->profile_id) { $mirror = new SubMirror(); $mirror->subscribed = $oprofile->profile_id; @@ -166,6 +170,7 @@ class SubMirrorPlugin extends Plugin } } } + return true; }