diff options
author | Jakob Sack <mail@jakobsack.de> | 2012-08-12 00:37:14 +0200 |
---|---|---|
committer | Jakob Sack <mail@jakobsack.de> | 2012-08-12 00:37:14 +0200 |
commit | 2bc8d3e5d65cd3b34ab535362c064fcfe6e89de0 (patch) | |
tree | 1785839e9d3b202a6ecdee586943b7c21a3e301e /settings/ajax | |
parent | a5a5ab2318758d68ec8cc5c707a9df43822d8fe4 (diff) | |
download | nextcloud-server-2bc8d3e5d65cd3b34ab535362c064fcfe6e89de0.tar.gz nextcloud-server-2bc8d3e5d65cd3b34ab535362c064fcfe6e89de0.zip |
Backgroundjobs: interface improvements
Diffstat (limited to 'settings/ajax')
-rw-r--r-- | settings/ajax/setbackgroundjobsmode.php | 5 |
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'; |