Is array
This commit is contained in:
@@ -93,7 +93,7 @@ class WrenchBanners extends BaseController
|
||||
if ($in["nocache"]) $this->deleteCache($endpoint);
|
||||
|
||||
$out = $this->getCache($endpoint); // try find in cache
|
||||
if ( count($out) == 0 ){
|
||||
if ( !is_array($out) || count($out) == 0 ){
|
||||
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
||||
$out['internal_return'] = $ret;
|
||||
log_message('critical', "usersBanners ********* ALL ".serialize($out) );
|
||||
|
||||
Reference in New Issue
Block a user