Whoops, I introduced a warning. Fixed.
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 15 Oct 2002 13:05:22 +0000 (13:05 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 15 Oct 2002 13:05:22 +0000 (13:05 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3860 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/date.php

index 7dc02e1..2045cf1 100644 (file)
@@ -273,7 +273,7 @@ function getTimeStamp($dateParts) {
      */
 
     /* validate zone before we uses strtotime */
-    if (isset($dateParts[6]) && $dateParts[6]{0} != '(') {
+    if (isset($dateParts[6]) && $dateParts[6] && $dateParts[6]{0} != '(') {
         $dateParts[6] = '('.$dateParts[6].')';
     }
     $string = implode (' ', $dateParts);