Fix cache condition

This commit is contained in:
CHIEFSOFT\ameye
2024-08-08 09:58:04 -04:00
parent c900def345
commit c1f18a187e
@@ -40,7 +40,7 @@ class WrenchGeneralData extends BaseController
if ( empty($out) || !is_array($out)){
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
$out['internal_return'] = $ret;
if ($ret > 0 ){ // dont cache error
if ($ret >= 0 ){ // dont cache error
$this->saveCache($endpoint,$out,25000);
}
}