Merge pull request #2972 from murrant/issue-2883

Deal with 0 value for sensor data better.
This commit is contained in:
Neil Lathwood
2016-02-09 21:11:26 +00:00
2 changed files with 2 additions and 2 deletions
@@ -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';
}