From 5fd15ecec3ce33f9c9204633fe8efe183976d386 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 10 Sep 2025 10:21:22 +0200 Subject: [PATCH] makeTsFromDate() can handle null --- inc/inc.Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/inc.Utils.php b/inc/inc.Utils.php index 6d31dda82..8b4da3eb0 100644 --- a/inc/inc.Utils.php +++ b/inc/inc.Utils.php @@ -111,7 +111,7 @@ function getPeriodOfTime($timestamp) { /* {{{ */ * @return integer/boolean unix timestamp or false in case of an error */ function makeTsFromDate($date) { /* {{{ */ - return strtotime($date); + return $date ? strtotime($date) : false; } /* }}} */ /*