From: Jeffery To Date: Wed, 7 Oct 2009 08:57:38 +0000 (+0800) Subject: Fixed E_NOTICE when the "lite" parameter isn't included in the request X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9449a1e39c8470072aa30ccde1ac5d2b55d65bad;p=quix0rs-gnu-social.git Fixed E_NOTICE when the "lite" parameter isn't included in the request --- diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php index 41887a68f4..360dff27cb 100644 --- a/actions/twitapistatuses.php +++ b/actions/twitapistatuses.php @@ -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); }