mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Comparison fix in slas.inc.php (#10812)
In the 'slas' table, the column 'opstatus' is of type int. The current comparison does not work correctly - in the web-interface all sla-probes are displayed as 'down', even if the status = 0 in the table (0 is OK).
This commit is contained in:
@@ -70,7 +70,7 @@ foreach ($slas as $sla) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$opstatus = ($sla['opstatus'] === '0') ? 'up' : 'down';
|
||||
$opstatus = ($sla['opstatus'] === 0) ? 'up' : 'down';
|
||||
d_echo("<br>Opstatus :: var: ".$vars['opstatus'].", db: ".$sla['opstatus'].", name: ".$opstatus."<br>");
|
||||
if ($vars['opstatus'] != 'all' && $vars['opstatus'] != $opstatus) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user