浏览代码

Whoops, I introduced a warning. Fixed.

stekkel 23 年之前
父节点
当前提交
cfee3caa63
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);