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 7dc02e182962e6854dac04c91b7e1e5184a1dc86..2045cf178cbc27d18d5a78447151ab100ef22bf0 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);