]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed E_NOTICE when the "lite" parameter isn't included in the request
authorJeffery To <jeffery.to@gmail.com>
Wed, 7 Oct 2009 08:57:38 +0000 (16:57 +0800)
committerJeffery To <jeffery.to@gmail.com>
Wed, 7 Oct 2009 09:28:29 +0000 (17:28 +0800)
actions/twitapistatuses.php

index 41887a68f44e6213cac8c8b9b528fb5a1d555d2f..360dff27cbda9da08365911340d46d80eb76e875 100644 (file)
@@ -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);
     }