Browse Source

Whoops, I introduced a warning. Fixed.

stekkel 23 năm trước cách đây
mục cha
commit
cfee3caa63
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);