diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-05-29 13:12:37 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-05-29 13:14:36 +0200 |
commit | 1c1ed52867123f682c17265ae62958c7d908d325 (patch) | |
tree | cff954ccba49b64c509eeecdc1b8f9fbbc75b54d | |
parent | d1f0261b5da3179acb0bc67c1fdd479b3deb37bc (diff) | |
download | nextcloud-server-1c1ed52867123f682c17265ae62958c7d908d325.tar.gz nextcloud-server-1c1ed52867123f682c17265ae62958c7d908d325.zip |
fix status
of timezone detection
-rw-r--r-- | apps/calendar/ajax/settings/timezonedetection.php | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/apps/calendar/ajax/settings/timezonedetection.php b/apps/calendar/ajax/settings/timezonedetection.php index ba5f2af5fd9..5f03f647b3a 100644 --- a/apps/calendar/ajax/settings/timezonedetection.php +++ b/apps/calendar/ajax/settings/timezonedetection.php @@ -8,13 +8,9 @@ OCP\JSON::checkLoggedIn(); OCP\JSON::checkAppEnabled('calendar'); -if(array_key_exists('timezonedetection', $_POST)){ - if($_POST['timezonedetection'] == 'on'){ - OCP\Config::setUserValue(OCP\USER::getUser(), 'calendar', 'timezonedetection', 'true'); - }else{ - OCP\Config::setUserValue(OCP\USER::getUser(), 'calendar', 'timezonedetection', 'false'); - } - OCP\JSON::success(); +if(array_key_exists('timezonedetection', $_POST) && $_POST['timezonedetection'] == 'on'){ + OCP\Config::setUserValue(OCP\USER::getUser(), 'calendar', 'timezonedetection', 'true'); }else{ - OCP\JSON::error(); -}
\ No newline at end of file + OCP\Config::setUserValue(OCP\USER::getUser(), 'calendar', 'timezonedetection', 'false'); +} +OCP\JSON::success();
\ No newline at end of file |