Skip to content
Snippets Groups Projects
Commit 8a3d41c0 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

fix a PHP Notice

parent 6c908a4c
Branches
No related tags found
No related merge requests found
......@@ -8,10 +8,13 @@
OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('calendar');
if(array_key_exists('timezonedetection', $_POST)){
if($_POST['timezonedetection'] == 'on'){
OC_Preferences::setValue(OC_USER::getUser(), 'calendar', 'timezonedetection', 'true');
}else{
OC_Preferences::setValue(OC_USER::getUser(), 'calendar', 'timezonedetection', 'false');
}
OC_JSON::success();
}else{
OC_JSON::error();
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment