Improved "if" construct

This commit is contained in:
Michael 2017-11-04 21:27:32 +00:00
parent 4831587250
commit 9c78938ca9

View file

@ -521,10 +521,8 @@ function settings_post(App $a) {
return; return;
} }
if ($timezone != $a->user['timezone']) { if (($timezone != $a->user['timezone']) && strlen($timezone)) {
if (strlen($timezone)) { date_default_timezone_set($timezone);
date_default_timezone_set($timezone);
}
} }
$str_group_allow = perms2str($_POST['group_allow']); $str_group_allow = perms2str($_POST['group_allow']);