Fixed E_NOTICE when the "lite" parameter isn't included in the request
This commit is contained in:
parent
87f5c53dd0
commit
9449a1e39c
@ -454,7 +454,7 @@ class TwitapistatusesAction extends TwitterapiAction
|
||||
function friends($args, $apidata)
|
||||
{
|
||||
parent::handle($args);
|
||||
$includeStatuses=! (boolean) $args['lite'];
|
||||
$includeStatuses= !(array_key_exists('lite', $args) and $args['lite']);
|
||||
return $this->subscriptions($apidata, 'subscribed', 'subscriber', false, $includeStatuses);
|
||||
}
|
||||
|
||||
@ -467,7 +467,7 @@ class TwitapistatusesAction extends TwitterapiAction
|
||||
function followers($args, $apidata)
|
||||
{
|
||||
parent::handle($args);
|
||||
$includeStatuses=! (boolean) $args['lite'];
|
||||
$includeStatuses= !(array_key_exists('lite', $args) and $args['lite']);
|
||||
return $this->subscriptions($apidata, 'subscriber', 'subscribed', false, $includeStatuses);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user