Mark the Comments label when it fails validation.

This commit is contained in:
tim
2026-09-25 22:12:27 +02:00
parent 94db52e20d
commit 1c76245808
+1 -1
View File
@@ -88,7 +88,7 @@ if (isset($file_src) || isset($img)) {
</div> </div>
<?php if ($is_admin) { ?> <?php if ($is_admin) { ?>
<label<?php isset($validate['comments']) ? ' class="red"' : '' ?> for="comments">Comments:</label> <label<?= isset($validate['comments']) ? ' class="red"' : '' ?> for="comments">Comments:</label>
<div class="rightcolumn"> <div class="rightcolumn">
<input type="text" name="comments" id="comments" maxlength="150" value="<?= isset($comments) ? form_value($comments) : '' ?>" /> <input type="text" name="comments" id="comments" maxlength="150" value="<?= isset($comments) ? form_value($comments) : '' ?>" />
</div> </div>