aboutsummaryrefslogtreecommitdiff
path: root/app/views/admin/lockrules/_form.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/lockrules/_form.php')
-rw-r--r--app/views/admin/lockrules/_form.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/views/admin/lockrules/_form.php b/app/views/admin/lockrules/_form.php
index c4ef111..b96c7b6 100644
--- a/app/views/admin/lockrules/_form.php
+++ b/app/views/admin/lockrules/_form.php
@@ -85,12 +85,14 @@ use Studip\Button;
</td>
<td>
<input type="radio"
- name="lockdata_attributes[<?= $attr ?>]" <?= ($lock_rule['attributes'][$attr] ? 'checked' : '') ?>
- value="1"/>
+ name="lockdata_attributes[<?= $attr ?>]"
+ <?= !empty($lock_rule['attributes'][$attr]) ? 'checked' : '' ?>
+ value="1">
</td>
<td>
<input type="radio"
- name="lockdata_attributes[<?= $attr ?>]" <?= (!$lock_rule['attributes'][$attr] ? 'checked' : '') ?>
+ name="lockdata_attributes[<?= $attr ?>]"
+ <?= empty($lock_rule['attributes'][$attr]) ? 'checked' : '' ?>
value="0"/>
</td>
</tr>