We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23db3a7 commit 3be575bCopy full SHA for 3be575b
Ncstate/Service/Dining.php
@@ -312,8 +312,10 @@ protected function _request($method, $args)
312
313
// The response will always have a wrapper element that is the version of the API we're using.
314
// We don't care about that, so we'll strip it out
315
- $this->_lastParsedResponse = array_pop($this->_lastParsedResponse);
316
-
+ if ($this->_lastParsedResponse != NULL) {
+ $this->_lastParsedResponse = array_pop($this->_lastParsedResponse);
317
+ }
318
+
319
// if it was xml, we'll remove the attributes that were attached to the
320
// root element as they were meaningless
321
if ($this->_format == 'xml') {
0 commit comments