From 87b1105eb9004422399d179ef6ec6c4f00ab5a26 Mon Sep 17 00:00:00 2001 From: stekkel Date: Tue, 15 Oct 2002 13:05:22 +0000 Subject: [PATCH] Whoops, I introduced a warning. Fixed. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3860 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/date.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/date.php b/functions/date.php index 7dc02e18..2045cf17 100644 --- a/functions/date.php +++ b/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); -- 2.25.1