From 3be575b1165188204cbd7dd29ee2662f51b8b5bf Mon Sep 17 00:00:00 2001 From: Dan Waller Date: Mon, 2 Jun 2014 15:46:27 -0400 Subject: [PATCH 1/2] Fixed null array bug Fixed null array bug in Dining.php line 315 --- Ncstate/Service/Dining.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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') { From b81ade568890008ef2c7fb3eb7a5df05e7f387dd Mon Sep 17 00:00:00 2001 From: Dan Waller Date: Thu, 5 Jun 2014 10:38:35 -0400 Subject: [PATCH 2/2] Updated API Version --- Ncstate/Version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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