null to avoid a "must be an instance of Profile" error when logged out

This commit is contained in:
Hannes Mannerheim 2015-11-19 21:34:51 +01:00
parent ae24576fe7
commit 598b619037

View File

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