Commit c3581e1c authored by Conrad Jones's avatar Conrad Jones
Browse files

Fix check which was using sizeof() operator on single object returned PDO...

Fix check which was using sizeof() operator on single object returned PDO database query, changed check to if ( !== null )
parent f7cc8814
......@@ -137,7 +137,7 @@ class Scan extends Common_functions {
return false;
}
# save to cache array
if(sizeof($res)>0) {
if($res !== null) {
$this->table[$table][$method][$id] = (object) $res;
return $res;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment