summaryrefslogtreecommitdiff
path: root/ext/standard/info.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/info.c')
-rw-r--r--ext/standard/info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/info.c b/ext/standard/info.c
index b4be6890dc..2c9809051d 100644
--- a/ext/standard/info.c
+++ b/ext/standard/info.c
@@ -1002,7 +1002,7 @@ PHPAPI char *php_logo_guid()
the_time = time(NULL);
ta = php_localtime_r(&the_time, &tmbuf);
- if ((ta->tm_mon==3) && (ta->tm_mday==1)) {
+ if (ta && (ta->tm_mon==3) && (ta->tm_mday==1)) {
logo_guid = PHP_EGG_LOGO_GUID;
} else {
logo_guid = PHP_LOGO_GUID;