aboutsummaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-26 15:41:53 +0200
committerThomas Lange <code@nerdmind.de>2021-06-26 15:41:53 +0200
commit8dedd695ce966b5cb968e116d7418665e184467d (patch)
treee5057a78e53f8b173dd55e45596e74e16fc58d90 /theme
parent871dab6a8071694884cc03e4612739ad1b34a7be (diff)
downloadblog-8dedd695ce966b5cb968e116d7418665e184467d.tar.gz
blog-8dedd695ce966b5cb968e116d7418665e184467d.tar.xz
blog-8dedd695ce966b5cb968e116d7418665e184467d.zip
Use shorthand ternary operator in admin forms
Diffstat (limited to 'theme')
-rw-r--r--theme/admin/html/page/form.php2
-rw-r--r--theme/admin/html/post/form.php2
-rw-r--r--theme/admin/html/user/form.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/theme/admin/html/page/form.php b/theme/admin/html/page/form.php
index be10877..e7c7de8 100644
--- a/theme/admin/html/page/form.php
+++ b/theme/admin/html/page/form.php
@@ -49,7 +49,7 @@
<i class="fa fa-pencil"></i><?=$Language->text('label_update')?></label>
<div class="form-grid-item">
- <input id="form_time_update" name="time_update" placeholder="<?=escapeHTML($FORM['DATA']['TIME_UPDATE'] ? $FORM['DATA']['TIME_UPDATE'] : 'CURRENT_TIMESTAMP')?>" value="" />
+ <input id="form_time_update" name="time_update" placeholder="<?=escapeHTML($FORM['DATA']['TIME_UPDATE'] ?: 'CURRENT_TIMESTAMP')?>" value="" />
</div>
</div>
diff --git a/theme/admin/html/post/form.php b/theme/admin/html/post/form.php
index bbbea10..346d6f4 100644
--- a/theme/admin/html/post/form.php
+++ b/theme/admin/html/post/form.php
@@ -49,7 +49,7 @@
<i class="fa fa-pencil"></i><?=$Language->text('label_update')?></label>
<div class="form-grid-item">
- <input id="form_time_update" name="time_update" placeholder="<?=escapeHTML($FORM['DATA']['TIME_UPDATE'] ? $FORM['DATA']['TIME_UPDATE'] : 'CURRENT_TIMESTAMP')?>" value="" />
+ <input id="form_time_update" name="time_update" placeholder="<?=escapeHTML($FORM['DATA']['TIME_UPDATE'] ?: 'CURRENT_TIMESTAMP')?>" value="" />
</div>
</div>
diff --git a/theme/admin/html/user/form.php b/theme/admin/html/user/form.php
index 2c12936..e3a0686 100644
--- a/theme/admin/html/user/form.php
+++ b/theme/admin/html/user/form.php
@@ -59,7 +59,7 @@
<i class="fa fa-pencil"></i><?=$Language->text('label_update')?></label>
<div class="form-grid-item">
- <input id="form_time_update" name="time_update" placeholder="<?=escapeHTML($FORM['DATA']['TIME_UPDATE'] ? $FORM['DATA']['TIME_UPDATE'] : 'CURRENT_TIMESTAMP')?>" value="" />
+ <input id="form_time_update" name="time_update" placeholder="<?=escapeHTML($FORM['DATA']['TIME_UPDATE'] ?: 'CURRENT_TIMESTAMP')?>" value="" />
</div>
</div>