Moving 2.0 development version to main trunk.
[fa-stable.git] / includes / date_functions.inc
index 484d5a8e1fc4072f59aab117c23b6f1cb50f1ac0..febf609f7fe5b94ada520345dba9ac52820f41a8 100644 (file)
@@ -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;
        }