Unverified Commit 4ebb1354 authored by Miha Petkovsek's avatar Miha Petkovsek Committed by GitHub
Browse files

Merge pull request #42 from TurboIT/master

Fix check which was using sizeof() operator on single object returned…
parents c2089390 c3581e1c
......@@ -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