Explorar el Código

Whoops, I introduced a warning. Fixed.

stekkel hace 23 años
padre
commit
cfee3caa63
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      functions/date.php

+ 1 - 1
functions/date.php

@@ -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);