March 26, 2014 at 22:39 /
Line 1719 in lib/functions/admin.php has an error (latest on github). This is the line:
$val_to = EasyDateTime::createFromFormat(RESERVATIONS_DATE_FORMAT.' H:i:s', $_POST['from'.' 00:00:00'])->getTimestamp() + ((int)$_POST['nights'] * $the_rooms_intervals_array[$val_room]) + (int) $_POST['toplus'];
it should be:
$val_to = EasyDateTime::createFromFormat(RESERVATIONS_DATE_FORMAT.' H:i:s', $_POST['from'] . ' 00:00:00')->getTimestamp() + ((int)$_POST['nights'] * $the_rooms_intervals_array[$val_room]) + (int) $_POST['toplus'];
The problem is in $_POST['from'.' 00:00:00']
as this would fetch “from00:00:00” param, which of course doesn’t not exist nor make sense.