makeTsFromDate() can handle null

This commit is contained in:
Uwe Steinmann 2025-09-10 10:21:22 +02:00
parent 5c9c02f5f2
commit 5fd15ecec3

View File

@ -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;
} /* }}} */
/*