From d28f726c5ccef559ff4bbe173786b232be52d5ba Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 27 Jan 2012 15:27:46 -0500 Subject: [PATCH] weird error with SubMirror --- plugins/SubMirror/SubMirrorPlugin.php | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- 2.39.5