summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2022-06-18 20:27:34 +0200
committerHarald Eilertsen <haraldei@anduin.net>2022-06-18 20:27:34 +0200
commit75fce31f5345a54082ad241735873c178bf9d785 (patch)
tree67d2d4c22319d23360a229b24b6b25991679d6a2
parent745ed40d46c18c683322b19939455deed52e94df (diff)
downloadgigologadmin-75fce31f5345a54082ad241735873c178bf9d785.tar.gz
gigologadmin-75fce31f5345a54082ad241735873c178bf9d785.tar.bz2
gigologadmin-75fce31f5345a54082ad241735873c178bf9d785.zip
Passing null as first arg to strtotime is deprecated.
-rw-r--r--includes/admin/views/_edit_concert_form.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/admin/views/_edit_concert_form.php b/includes/admin/views/_edit_concert_form.php
index 18ff4d3..1a2e5a6 100644
--- a/includes/admin/views/_edit_concert_form.php
+++ b/includes/admin/views/_edit_concert_form.php
@@ -62,7 +62,7 @@ if ( ! class_exists( 'GiglogAdmin_EditConcertForm' ) ) {
. '<label for="venue">Venue:</label>' . $this->get_venue_selector( $c->venue() ) . '<br>'
// date has to be formatted else it is not red in the date field of html form
. '<label for="cdate">Date:</label>'
- . '<input type="date" id="cdate" name="cdate" value="' . esc_attr( date( 'Y-m-d', strtotime( $c->cdate() ) ) ) . '"><br>'
+ . '<input type="date" id="cdate" name="cdate" value="' . esc_attr( date( 'Y-m-d', strtotime( $c->cdate() ?? '' ) ) ) . '"><br>'
. '<label for="ticket">Tickets:</label>'
. '<input type="text" id="ticket" name="ticket" value="' . esc_url( $c->tickets() ) . '"><br>'
. '<label for="eventurl">Event link:</label>'