Weird locales seem to mess with uppercase i, and php seems to like to
[squirrelmail.git] / functions / date.php
index 4b2fa8605ff3fe7c8634ab58d89289b600ecba34..24cb1deee28f6beafe2606f5770b4794d1c5dda3 100644 (file)
@@ -261,6 +261,9 @@ function getTimeStamp($dateParts) {
      * array is an integer or not.
      * Since the day of week is optional, this check is needed.
      */
+     if (count($dateParts) <2) {
+        return 0;
+     }
 
     /* remove day of week */
     if (!is_numeric(trim($dateParts[0]))) {