From e1a4b5439d17194b6016f262f444030f6aa3c1e1 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 25 Jan 2011 15:08:19 +0000 Subject: [PATCH] - Let's keep this consistent in the whole file. --- ext/date/php_date.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index f6c7217182..82d74f8edc 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -897,7 +897,7 @@ static char* guess_timezone(const timelib_tzdb *tzdb TSRMLS_DC) } tzid = timelib_timezone_id_from_abbr("", (tzi.Bias + tzi.DaylightBias) * -60, 1); - if (tzid == NULL) { + if (! tzid) { tzid = "UTC"; } php_error_docref(NULL TSRMLS_CC, E_WARNING, DATE_TZ_ERRMSG "We selected '%s' for '%.1f/DST' instead", tzid, ((tzi.Bias + tzi.DaylightBias) / -60.0)); -- 2.49.0