diff --git a/www-api/app/Controllers/WrenchBanners.php b/www-api/app/Controllers/WrenchBanners.php index 8b19ba3a..7eb1feb1 100644 --- a/www-api/app/Controllers/WrenchBanners.php +++ b/www-api/app/Controllers/WrenchBanners.php @@ -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) );