mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update to check new setting for true and isset
This commit is contained in:
@@ -55,17 +55,13 @@ if (defined('SHOW_SETTINGS')) {
|
||||
</div>';
|
||||
}
|
||||
|
||||
if (isset($widget_settings['show_disabled_and_ignored'])) {
|
||||
$showDisabledAndIgnored = 1;
|
||||
} else {
|
||||
$showDisabledAndIgnored = 0;
|
||||
}
|
||||
$showDisabledAndIgnored = isset($widget_settings['show_disabled_and_ignored']) && $widget_settings['show_disabled_and_ignored'];
|
||||
|
||||
$common_output[] = '
|
||||
<div class="form-group">
|
||||
<label for="show_disabled_and_ignored" class="col-sm-4 control-label">Disabled and ignored</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="checkbox" class="form-control" name="show_disabled_and_ignored" value="1" ' .($showDisabledAndIgnored == 1 ? 'checked' : ''). '>
|
||||
<input type="checkbox" class="form-control" name="show_disabled_and_ignored" value="1" ' .($showDisabledAndIgnored ? 'checked' : ''). '>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user