summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-05-29 13:12:37 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-05-29 13:14:05 +0200
commit75afc09b9d0e2dd417ded4d9b84ca745042a0cf3 (patch)
treed2d927ce5e4ec22791ca220a86dcdfb208acd870 /apps
parent22cd0f1cda83b6ca76e717ff9f8e376a17430740 (diff)
downloadnextcloud-server-75afc09b9d0e2dd417ded4d9b84ca745042a0cf3.tar.gz
nextcloud-server-75afc09b9d0e2dd417ded4d9b84ca745042a0cf3.zip
fix status
of timezone detection
Diffstat (limited to 'apps')
-rw-r--r--apps/calendar/ajax/settings/timezonedetection.php14
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