diff --git a/Ncstate/Service/Dining.php b/Ncstate/Service/Dining.php index b02d81e..d90cffd 100755 --- a/Ncstate/Service/Dining.php +++ b/Ncstate/Service/Dining.php @@ -312,8 +312,10 @@ protected function _request($method, $args) // The response will always have a wrapper element that is the version of the API we're using. // We don't care about that, so we'll strip it out - $this->_lastParsedResponse = array_pop($this->_lastParsedResponse); - + if ($this->_lastParsedResponse != NULL) { + $this->_lastParsedResponse = array_pop($this->_lastParsedResponse); + } + // if it was xml, we'll remove the attributes that were attached to the // root element as they were meaningless if ($this->_format == 'xml') { diff --git a/Ncstate/Version.php b/Ncstate/Version.php index ac5cfc3..bf59be4 100755 --- a/Ncstate/Version.php +++ b/Ncstate/Version.php @@ -17,7 +17,7 @@ final class Ncstate_Version * Version of the API * @var string */ - const VERSION = '1.1.0'; + const VERSION = '1.1.1'; /** * Compare the specified version string $version with the current