I am doing a check to check if currentDate is set and if not use the date of today but it crashes my website.
$currentDate = if(empty($currentDate)) ? strtotime(strftime('%d-%m-%Y', time())) : $currentDate;
What is wrong with that?
I am doing a check to check if currentDate is set and if not use the date of today but it crashes my website.
$currentDate = if(empty($currentDate)) ? strtotime(strftime('%d-%m-%Y', time())) : $currentDate;
What is wrong with that?