From dc0379cdee58fc89873c4612ce31be6852785a55 Mon Sep 17 00:00:00 2001 From: laf Date: Mon, 2 May 2016 21:41:36 +0000 Subject: [PATCH] fix php 5.4 in validate --- validate.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/validate.php b/validate.php index 1decda751e..9075a2ac7d 100755 --- a/validate.php +++ b/validate.php @@ -152,7 +152,8 @@ if(strstr($strict_mode, 'STRICT_TRANS_TABLES')) { print_warn('You have MySQL STRICT_TRANS_TABLES enabled, it is advisable to disable this until full support has been added: https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html'); } -if (empty(ini_get('date.timezone'))) { +$tz = ini_get('date.timezone'); +if (empty($tz)) { print_fail('You have no timezone set for php: http://php.net/manual/en/datetime.configuration.php#ini.date.timezone'); }