Improved "if" construct
This commit is contained in:
parent
4831587250
commit
9c78938ca9
|
@ -521,11 +521,9 @@ function settings_post(App $a) {
|
|||
return;
|
||||
}
|
||||
|
||||
if ($timezone != $a->user['timezone']) {
|
||||
if (strlen($timezone)) {
|
||||
if (($timezone != $a->user['timezone']) && strlen($timezone)) {
|
||||
date_default_timezone_set($timezone);
|
||||
}
|
||||
}
|
||||
|
||||
$str_group_allow = perms2str($_POST['group_allow']);
|
||||
$str_contact_allow = perms2str($_POST['contact_allow']);
|
||||
|
|
Loading…
Reference in New Issue
Block a user