Fixing timezone_value if is empty

skala
Julio Montoya 13 years ago
parent 941e9dd84f
commit 9e16d8a315
  1. 7
      main/admin/settings.php

@ -475,8 +475,13 @@ if (!empty($_GET['category']) && !in_array($_GET['category'], array('Plugins', '
$allowed_picture_types = array ('jpg', 'jpeg', 'png', 'gif');
$form->addRule('pdf_export_watermark_path', get_lang('OnlyImagesAllowed').' ('.implode(',', $allowed_picture_types).')', 'filetype', $allowed_picture_types);
}
if ($row['variable'] == 'timezone_value') {
$form->addElement('html', sprintf(get_lang('LocalTimeUsingPortalTimezoneXIsY'),$row['selected_value'],api_get_local_time()));
$timezone = $row['selected_value'];
if (empty($timezone)) {
$timezone = _api_get_timezone();
}
$form->addElement('html', sprintf(get_lang('LocalTimeUsingPortalTimezoneXIsY'), $timezone, api_get_local_time()));
}
}

Loading…
Cancel
Save