Skip to content

Commit

Permalink
Update search.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
directman66 committed Jul 22, 2019
1 parent c548998 commit d65b633
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions modules/bletool/search.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,19 @@
$out['SORTBY']=$sortby_snmpdevices;
// SEARCH RESULTS
$res=SQLSelect("SELECT ble_devices.* FROM ble_devices WHERE $qry ORDER BY ".$sortby_snmpdevices);
if ($res[0]['ID']) {
colorizeArray($res);
$total=count($res);
$total=count($res);
for($i=0;$i<$total;$i++) {
// some action for every record if required
}

if (time()-strtotime($res[$i]['UPDATED'])>3000) {
$res[$i]['LOST']='1';}

}


$out['RESULT']=$res;

}




Expand Down

0 comments on commit d65b633

Please sign in to comment.