From 598b6190377a8153659b7c607704bd10e8dd453d Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Thu, 19 Nov 2015 21:34:51 +0100 Subject: [PATCH] null to avoid a "must be an instance of Profile" error when logged out --- QvitterPlugin.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/QvitterPlugin.php b/QvitterPlugin.php index 25ac8be..75ae62e 100644 --- a/QvitterPlugin.php +++ b/QvitterPlugin.php @@ -1152,7 +1152,7 @@ class QvitterPlugin extends Plugin { $twitter_user['following'] = false; $twitter_user['statusnet_blocking'] = false; - $logged_in_profile = false; + $logged_in_profile = null; if(common_logged_in()) { @@ -1167,8 +1167,6 @@ class QvitterPlugin extends Plugin { $twitter_user['statusnet_profile_url'] = $profile->profileurl; - // The event call to handle NoticeSimpleStatusArray lets plugins add data to the output array - Event::handle('TwitterUserArray', array($profile, &$twitter_user, $logged_in_profile, array())); return $twitter_user;