summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2011-01-25 15:08:19 +0000
committerDerick Rethans <derick@php.net>2011-01-25 15:08:19 +0000
commitecbbe16a8bf878cf51d627e61a4ed6dec18579dd (patch)
treebb687d14ec71945c39a148fcc0d14489521dff29
parentcad4c3451065061649b2094b3af740533a90de0e (diff)
downloadphp-git-ecbbe16a8bf878cf51d627e61a4ed6dec18579dd.tar.gz
- Let's keep this consistent in the whole file.
-rw-r--r--ext/date/php_date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 1d6bbefe0c..a68077dc7a 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));