Permalink
Browse files

Minor tweak to setting the token.

  • Loading branch information...
1 parent 5d3872f commit 085092f6e099c1cda9ffac0096132d902491c178 @aaronschmitz aaronschmitz committed with LouisLandry Aug 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libraries/joomla/oauth/v2client.php
@@ -299,7 +299,7 @@ public function getToken()
*/
public function setToken($value)
{
- if (!array_key_exists('expires_in', $value) && array_key_exists('expires', $value))
+ if (is_array($value) && !array_key_exists('expires_in', $value) && array_key_exists('expires', $value))
{
$value['expires_in'] = $value['expires'];
unset($value['expires']);

0 comments on commit 085092f

Please sign in to comment.