aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>