mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-07-25 19:03:50 +00:00
PHP5.4 compatibility for empty() function.
This commit is contained in:
parent
3181204228
commit
c88d4daf3c
1 changed files with 2 additions and 2 deletions
|
|
@ -124,14 +124,14 @@ if (extension_loaded('openssl')) {
|
|||
}
|
||||
|
||||
// Datetime
|
||||
if (!empty(ini_get('date.timezone'))) {
|
||||
$timezone = ini_get('date.timezone');
|
||||
if (!empty($timezone)) {
|
||||
$messages[] = new Message('info', __('Check','date.timezone is set.'));
|
||||
} else {
|
||||
$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
|
||||
$errors = 0;
|
||||
$warnings = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue