summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/xmlrpc.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/etc/inc/xmlrpc.inc b/etc/inc/xmlrpc.inc
index 3de9b91..74fa712 100644
--- a/etc/inc/xmlrpc.inc
+++ b/etc/inc/xmlrpc.inc
@@ -102,16 +102,16 @@ function php_value_to_xmlrpc($value, $force_array = false) {
* the array before returning it.
*/
function xmlrpc_auth(&$params) {
- global $config;
+ global $config;
$localpass = $config['system']['password'];
- if(crypt($params[0], $localpass) == $localpass) {
- array_shift($params);
+ if(crypt($params[0], $localpass) == $localpass) {
+ array_shift($params);
return true;
- } else if(crypt($params['xmlrpcauth'], $localpass) != $localpass) {
+ } else if(crypt($params['xmlrpcauth'], $localpass) != $localpass) {
+ log_error("An error occured while syncing the XML configuration. Invalid password.");
unset($params['xmlrpcauth']);
- return true;
+ return false;
}
- return false;
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud