mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Merge pull request #2972 from murrant/issue-2883
Deal with 0 value for sensor data better.
This commit is contained in:
@@ -12,7 +12,7 @@ if (count($sensors)) {
|
||||
echo ' </div>
|
||||
<table class="table table-hover table-condensed table-striped">';
|
||||
foreach ($sensors as $sensor) {
|
||||
if (empty($sensor['sensor_current'])) {
|
||||
if (!isset($sensor['sensor_current'])) {
|
||||
$sensor['sensor_current'] = 'NaN';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user