Commit 01379064 authored by ueli heuer's avatar ueli heuer 👾
Browse files

Shoe default values if the device has no 'own' values (device_details)

parent 189b13a4
......@@ -1038,7 +1038,13 @@ public function device_detail($device_id,$action) // {{{
default:
$table->add_row('userdark');
$table->add_cell(sprintf('%s:',$param_name),1,'description');
$table->add_cell($param,DVG_table::WHOLE_ROW,'value');
if ( isset($param)) {
$table->add_cell($param,DVG_table::WHOLE_ROW,'value');
} else {
$table->add_cell(
sprintf('<span title="default value">%s (*)</span>',$default),
DVG_table::WHOLE_ROW,'value');
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment