Better support for malformed/absent dates and headerlines ending in only "\n".
[squirrelmail.git] / functions / date.php
index 84029fc..c6b5db9 100644 (file)
@@ -398,7 +398,7 @@ function getTimeStamp($dateParts) {
      * Since the day of week is optional, this check is needed.
      */
      if (count($dateParts) <2) {
-        return 0;
+        return -1;
      }
 
     /* remove day of week */