if(!empty($maintenance_options['disable'])) {
$currentDate = date("Y-m-d H:i:s", strtotime(date("Y-m-d") . date("H:i:s")));
$nodate = $maintenance_options['disable'], strtotime(date("Y-m-d") . date("H:i:s"));
if($currentDate > $nodate) {
echo 'if';
} else {
echo 'else';
}
}
I have this weird error:
Parse error: syntax error, unexpected ',' on line 53
Line 53 is
$nodate = $maintenance_options['disable'], strtotime(date("Y-m-d") . date("H:i:s"));
but that line seems to be fine? What's wrong with it?