mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
PSR2 Cleanup: /html edition
Travis tests for code conformance. Ignore warnings for now. Fixed all errors, left most warnings.
This commit is contained in:
@@ -10,8 +10,7 @@ $sql .= " LEFT JOIN `poller_groups` ON `D`.`poller_group`=`poller_groups`.`id`";
|
||||
|
||||
if (is_admin() === false) {
|
||||
$sql .= " WHERE D.device_id = P.device_id AND P.user_id = '".$_SESSION['user_id']."' AND D.ignore = '0'";
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$sql .= ' WHERE 1';
|
||||
}
|
||||
|
||||
@@ -46,7 +45,7 @@ if ($rowCount != -1) {
|
||||
|
||||
$sql = "SELECT D.device_id,D.hostname AS `hostname`, D.last_polled AS `last_polled`, `group_name`, D.last_polled_timetaken AS `last_polled_timetaken` $sql";
|
||||
|
||||
foreach (dbFetchRows($sql,array(),true) as $device) {
|
||||
foreach (dbFetchRows($sql, array(), true) as $device) {
|
||||
if (empty($device['group_name'])) {
|
||||
$device['group_name'] = 'General';
|
||||
}
|
||||
|
Reference in New Issue
Block a user