From: Janusz Dobrowolski Date: Thu, 20 Mar 2008 11:51:43 +0000 (+0000) Subject: Warning fix in is_date() X-Git-Tag: v2.4.2~19^2~2156 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=481b39c0950b34482fb565ef9230345000938e7e;p=fa-stable.git Warning fix in is_date() --- diff --git a/includes/date_functions.inc b/includes/date_functions.inc index 484d5a8e..febf609f 100644 --- a/includes/date_functions.inc +++ b/includes/date_functions.inc @@ -83,7 +83,7 @@ function is_date($date_) $year = substr($date_,0,4); } } - if ((int)$year > 9999) + if (!isset($year)|| (int)$year > 9999) { return 0; }