mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Updated to fix scrutinizer issues
This commit is contained in:
		| @@ -77,6 +77,7 @@ if ($config['warn']['ifdown']) | ||||
| if ($_SESSION['userlevel'] == '10') | ||||
| { | ||||
|   $sql = "SELECT * FROM `services` AS S, `devices` AS D WHERE S.device_id = D.device_id AND service_status = 'down' AND D.ignore = '0' AND S.service_ignore = '0'"; | ||||
|   $param[] = ''; | ||||
| } | ||||
| else | ||||
| { | ||||
|   | ||||
| @@ -115,7 +115,7 @@ if($_SESSION['userlevel'] < 5) | ||||
| } | ||||
| else | ||||
| { | ||||
|   $results = ''; | ||||
|   $results = array(); | ||||
| } | ||||
| foreach ($results as $data) | ||||
| { | ||||
| @@ -256,6 +256,8 @@ if(!isset($vars['ignore']))   { $vars['ignore'] = "0"; } | ||||
| if(!isset($vars['disabled'])) { $vars['disabled'] = "0"; } | ||||
| if(!isset($vars['deleted']))  { $vars['deleted'] = "0"; } | ||||
|  | ||||
| $where = ''; | ||||
|  | ||||
| foreach ($vars as $var => $value) | ||||
| { | ||||
|   if ($value != "") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user