fix: variable non initialisée dans post_form.php

This commit is contained in:
Cedric Abonnel
2026-05-08 13:29:13 +02:00
parent ddfc5bf026
commit 7bf05b05dd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ $dateValue = $published_at ?? date('Y-m-d\TH:i');
</div>
<div class="col-md-6 d-flex align-items-end">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="published" name="published" <?= $published ? 'checked' : '' ?>>
<input class="form-check-input" type="checkbox" id="published" name="published" <?= ($published ?? false) ? 'checked' : '' ?>>
<label class="form-check-label" for="published">Publié</label>
</div>
</div>