summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/ajax
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-01-30 02:39:11 +0100
committerArthur Schiwon <blizzz@owncloud.com>2013-01-30 02:39:11 +0100
commita5575220376afc5a2b47784368183983aec432ef (patch)
tree27cf7073462e4dea4a974bca363ddcda21a825ba /apps/user_ldap/ajax
parent9f7d7802762000f9dd033f922c9ba2d3b0f3fa79 (diff)
downloadnextcloud-server-a5575220376afc5a2b47784368183983aec432ef.tar.gz
nextcloud-server-a5575220376afc5a2b47784368183983aec432ef.zip
LDAP: send back error message properly
Diffstat (limited to 'apps/user_ldap/ajax')
-rw-r--r--apps/user_ldap/ajax/deleteConfiguration.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/ajax/deleteConfiguration.php b/apps/user_ldap/ajax/deleteConfiguration.php
index 78f88dc942d..e91e75bbba3 100644
--- a/apps/user_ldap/ajax/deleteConfiguration.php
+++ b/apps/user_ldap/ajax/deleteConfiguration.php
@@ -30,5 +30,5 @@ $prefix = $_POST['ldap_serverconfig_chooser'];
if(\OCA\user_ldap\lib\Helper::deleteServerConfiguration($prefix)){
OCP\JSON::success();
} else {
- OCP\JSON::error('Failed to delete the server configuration');
+ OCP\JSON::error(array('message' => 'Failed to delete the server configuration'));
} \ No newline at end of file