mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-27 18:10:42 +00:00
makeTsFromDate() can handle null
This commit is contained in:
parent
5c9c02f5f2
commit
5fd15ecec3
|
|
@ -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;
|
||||
} /* }}} */
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user