weird error with SubMirror

This commit is contained in:
Evan Prodromou 2012-01-27 15:27:46 -05:00
parent d625364354
commit d28f726c5c

View File

@ -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;
}