null to avoid a "must be an instance of Profile" error when logged out
This commit is contained in:
parent
ae24576fe7
commit
598b619037
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user