0

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?

Qirel
  • 25,449
  • 7
  • 45
  • 62

0 Answers0