From: Janusz Dobrowolski Date: Sat, 23 Jan 2010 18:20:08 +0000 (+0000) Subject: Removed archaic erro handling. X-Git-Tag: v2.4.2~19^2~995 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=ab76c9f299dbfa859fd18cde67215bbf2c86e55d;p=fa-stable.git Removed archaic erro handling. --- diff --git a/includes/date_functions.inc b/includes/date_functions.inc index 47876bb8..8fc1447a 100644 --- a/includes/date_functions.inc +++ b/includes/date_functions.inc @@ -365,8 +365,9 @@ function date1_greater_date2 ($date1, $date2) $date1 = date2sql($date1); $date2 = date2sql($date2); - list($year1, $month1, $day1) = explode("-", $date1); - list($year2, $month2, $day2) = explode("-", $date2); + + @list($year1, $month1, $day1) = explode("-", $date1); + @list($year2, $month2, $day2) = explode("-", $date2); if ($year1 > $year2) { @@ -430,9 +431,7 @@ function explode_date_to_dmy($date_) $date = date2sql($date_); if ($date == "") { - $disp = user_date_display(); - echo "
Dates must be entered in the format $disp. Sent was $date_
"; - exit; + return array(0,0,0); } list($year, $month, $day) = explode("-", $date); return array($day, $month, $year);