aboutsummaryrefslogtreecommitdiffstats
path: root/theme/admin/html
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-26 02:02:10 +0200
committerThomas Lange <code@nerdmind.de>2021-06-26 02:02:10 +0200
commit08011d0724d131de9a9b50693eb19b84ceedc038 (patch)
treee90b6b43e9ff71d7699cb4e773fb121c02c3a84d /theme/admin/html
parentd581ae0cfc6c4c3210cbdd9680739a74211cde67 (diff)
downloadblog-08011d0724d131de9a9b50693eb19b84ceedc038.tar.gz
blog-08011d0724d131de9a9b50693eb19b84ceedc038.tar.xz
blog-08011d0724d131de9a9b50693eb19b84ceedc038.zip
Fix bug in user select form field
Diffstat (limited to 'theme/admin/html')
-rw-r--r--theme/admin/html/page/form.php2
-rw-r--r--theme/admin/html/post/form.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/theme/admin/html/page/form.php b/theme/admin/html/page/form.php
index e818e4b..be10877 100644
--- a/theme/admin/html/page/form.php
+++ b/theme/admin/html/page/form.php
@@ -33,7 +33,7 @@
<div class="form-grid-item">
<select id="form_user" name="user">
<?php foreach($FORM['USER_LIST'] as $user): ?>
- <option value="<?=$user['ID']?>"<?=($FORM['DATA']['USER'] === $user['ID']) ? ' selected' : '' ?>><?=escapeHTML($user['FULLNAME'])?> [<?=$user['USERNAME']?>]</option>
+ <option value="<?=$user['ID']?>"<?=($FORM['DATA']['USER'] == $user['ID']) ? ' selected' : '' ?>><?=escapeHTML($user['FULLNAME'])?> [<?=$user['USERNAME']?>]</option>
<?php endforeach; ?>
</select>
</div>
diff --git a/theme/admin/html/post/form.php b/theme/admin/html/post/form.php
index 08f82dd..bbbea10 100644
--- a/theme/admin/html/post/form.php
+++ b/theme/admin/html/post/form.php
@@ -33,7 +33,7 @@
<div class="form-grid-item">
<select id="form_user" name="user">
<?php foreach($FORM['USER_LIST'] as $user): ?>
- <option value="<?=$user['ID']?>"<?=($FORM['DATA']['USER'] === $user['ID']) ? ' selected' : '' ?>><?=escapeHTML($user['FULLNAME'])?> [<?=$user['USERNAME']?>]</option>
+ <option value="<?=$user['ID']?>"<?=($FORM['DATA']['USER'] == $user['ID']) ? ' selected' : '' ?>><?=escapeHTML($user['FULLNAME'])?> [<?=$user['USERNAME']?>]</option>
<?php endforeach; ?>
</select>
</div>