Commit 1c44ae4e authored by Ad Schellevis's avatar Ad Schellevis

accept single item in backup_config_section_xmlrpc

parent 1b7e9e25
......@@ -278,6 +278,11 @@ function backup_config_section_xmlrpc($sectionKeys)
{
global $config;
require_once("config.inc");
if (!is_array($sectionKeys)) {
// single item
return array_intersect_key($config, array($sectionKeys => 0));
} else {
// backup more sections at once
return array_intersect_key($config, array_flip($sectionKeys));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment