Merge branch 'bugfix/php54-empty-compatibility' into 'develop'

PHP5.4 compatibility for empty() function.



See merge request !137
This commit is contained in:
Olivier Perez 2016-07-07 15:11:14 +02:00
commit dc61be5de5

View File

@ -124,14 +124,14 @@ if (extension_loaded('openssl')) {
} }
// Datetime // Datetime
if (!empty(ini_get('date.timezone'))) { $timezone = ini_get('date.timezone');
if (!empty($timezone)) {
$messages[] = new Message('info', __('Check','date.timezone is set.')); $messages[] = new Message('info', __('Check','date.timezone is set.'));
} else { } else {
$messages[] = new Message('warning', __('Check','Consider setting the date.timezone in php.ini.')); $messages[] = new Message('warning', __('Check','Consider setting the date.timezone in php.ini.'));
} }
// The percentage of steps needed to be ready to launch the application // The percentage of steps needed to be ready to launch the application
$errors = 0; $errors = 0;
$warnings = 0; $warnings = 0;