Fix php fatal error can't use method return value in write context

release-1.34
Isaac Connor 2022-04-25 17:59:34 -04:00
parent def9134c02
commit 4478704c94
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ The following monitors will have these settings update when you click Save:<br/>
</p>
<p>
<label for="newMonitor[Enabled]"><?php echo translate('Enabled') ?></label>
<input type="checkbox" name="newMonitor[Enabled]" id="newMonitor[Enabled]" value="1"<?php if ( !empty($monitors[0]->Enabled()) ) { ?> checked="checked"<?php } ?>/>
<input type="checkbox" name="newMonitor[Enabled]" id="newMonitor[Enabled]" value="1"<?php echo $monitors[0]->Enabled() ? ' checked="checked"' : '' ?>/>
</p>
<div id="contentButtons">
<button type="submit" value="Save"><?php echo translate('Save') ?></button>