Bug correction in index.php

If time is AM, $_POST['date_hour'] is 0, so it is empty and submission
fails. Replaced empty by isset in index.php to solve this issue.