Scrutinizer issues fixed

This commit is contained in:
Neil Lathwood
2014-12-16 20:49:55 +00:00
parent a84df3742f
commit 1140768bd2
4 changed files with 7 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ echo('</select></td>');
$rulei=1;
$count_query = "SELECT COUNT(id)";
$full_query = "SELECT *";
$param = array();
if(isset($device['device_id']) && $device['device_id'] > 0) {
$sql = 'WHERE (device_id=? OR device_id="-1")';
$param = array($device['device_id']);