]> git.mxchange.org Git - friendica.git/commitdiff
Improved "if" construct
authorMichael <heluecht@pirati.ca>
Sat, 4 Nov 2017 21:27:32 +0000 (21:27 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 4 Nov 2017 21:27:32 +0000 (21:27 +0000)
mod/settings.php

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