Skip to content

Commit 341e5c0

Browse files
committed
Merge pull request #19 from dnjwaller/master
Fixed null array bug
2 parents 93c582a + b81ade5 commit 341e5c0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Ncstate/Service/Dining.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,10 @@ protected function _request($method, $args)
312312

313313
// The response will always have a wrapper element that is the version of the API we're using.
314314
// We don't care about that, so we'll strip it out
315-
$this->_lastParsedResponse = array_pop($this->_lastParsedResponse);
316-
315+
if ($this->_lastParsedResponse != NULL) {
316+
$this->_lastParsedResponse = array_pop($this->_lastParsedResponse);
317+
}
318+
317319
// if it was xml, we'll remove the attributes that were attached to the
318320
// root element as they were meaningless
319321
if ($this->_format == 'xml') {

Ncstate/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ final class Ncstate_Version
1717
* Version of the API
1818
* @var string
1919
*/
20-
const VERSION = '1.1.0';
20+
const VERSION = '1.1.1';
2121

2222
/**
2323
* Compare the specified version string $version with the current

0 commit comments

Comments
 (0)