summaryrefslogtreecommitdiffstats
path: root/settings/ajax
diff options
context:
space:
mode:
authorJakob Sack <mail@jakobsack.de>2012-08-12 00:37:14 +0200
committerJakob Sack <mail@jakobsack.de>2012-08-12 00:37:14 +0200
commit2bc8d3e5d65cd3b34ab535362c064fcfe6e89de0 (patch)
tree1785839e9d3b202a6ecdee586943b7c21a3e301e /settings/ajax
parenta5a5ab2318758d68ec8cc5c707a9df43822d8fe4 (diff)
downloadnextcloud-server-2bc8d3e5d65cd3b34ab535362c064fcfe6e89de0.tar.gz
nextcloud-server-2bc8d3e5d65cd3b34ab535362c064fcfe6e89de0.zip
Backgroundjobs: interface improvements
Diffstat (limited to 'settings/ajax')
-rw-r--r--settings/ajax/setbackgroundjobsmode.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/settings/ajax/setbackgroundjobsmode.php b/settings/ajax/setbackgroundjobsmode.php
index 905b90e645c..b0292f3b106 100644
--- a/settings/ajax/setbackgroundjobsmode.php
+++ b/settings/ajax/setbackgroundjobsmode.php
@@ -26,6 +26,9 @@ require_once('../../lib/base.php');
OC_Util::checkAdminUser();
OCP\JSON::callCheck();
-OC_Appconfig::setValue( 'core', 'backgroundjobs_mode', $_POST['mode'] );
+$mode = isset( $_POST['mode'] ) ? $_POST['mode'] : '';
+if( $mode == "none" || $mode == "ajax" || $mode == "webcron" || $mode == "cron" ){
+ OC_Appconfig::setValue( 'core', 'backgroundjobs_mode', $_POST['mode'] );
+}
echo 'true';