Sfoglia il codice sorgente

Whoops, I introduced a warning. Fixed.

stekkel 23 anni fa
parent
commit
cfee3caa63
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      functions/date.php

+ 1 - 1
functions/date.php

@@ -273,7 +273,7 @@ function getTimeStamp($dateParts) {
      */
      */
 
 
     /* validate zone before we uses strtotime */
     /* 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].')';
         $dateParts[6] = '('.$dateParts[6].')';
     }
     }
     $string = implode (' ', $dateParts);
     $string = implode (' ', $dateParts);