From da1f6f242fad7ab0a847d311c458b59304b60a0b Mon Sep 17 00:00:00 2001 From: jhubb81 Date: Wed, 2 Jul 2014 14:52:57 +0100 Subject: [PATCH] Added unset for widget options Trying to rawencodeurl on $options['widget'] which is an array was throwing a PHP warning so we can unset the array value as it isn't needed anyway. --- twitter_oauth.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/twitter_oauth.php b/twitter_oauth.php index a866a15..aa1c4fd 100644 --- a/twitter_oauth.php +++ b/twitter_oauth.php @@ -150,7 +150,10 @@ protected function fetch_tweets($options) unset($options['consumer_secret']); $access_token_secret = $options['access_token_secret']; unset($options['access_token_secret']); - + + // Unset widget options as they are not needed here and causing a php warning + unset($options['widget']); + // Encode and merge perams $options = array_map('rawurlencode', $options); $params = array_merge($oauth, $options);