Bastian Hofmann

catched possible error if service returns empty parameters like token=abc&scope=…

… in access token response
@@ -363,7 +363,7 @@ class OAuth2_Token @@ -363,7 +363,7 @@ class OAuth2_Token
363 } 363 }
364 return $this->_additionalParams[$param]; 364 return $this->_additionalParams[$param];
365 case 'set': 365 case 'set':
366 - if (! isset($arguments[0])) { 366 + if (! array_key_exists(0, $arguments)) {
367 throw new OAuth2_Exception('magic setter has no argument'); 367 throw new OAuth2_Exception('magic setter has no argument');
368 } 368 }
369 $this->_additionalParams[$param] = $arguments[0]; 369 $this->_additionalParams[$param] = $arguments[0];