mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #2973 from murrant/issue-2883-2
Missed this while fixing sensor data with 0 values.
This commit is contained in:
@ -47,7 +47,7 @@ if ($rowCount != -1) {
|
||||
$sql = "SELECT * $sql";
|
||||
|
||||
foreach (dbFetchRows($sql, $param) as $sensor) {
|
||||
if (empty($sensor['sensor_current'])) {
|
||||
if (!isset($sensor['sensor_current'])) {
|
||||
$sensor['sensor_current'] = 'NaN';
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user