diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-01-30 02:39:11 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-01-30 02:39:11 +0100 |
commit | a5575220376afc5a2b47784368183983aec432ef (patch) | |
tree | 27cf7073462e4dea4a974bca363ddcda21a825ba /apps/user_ldap/ajax | |
parent | 9f7d7802762000f9dd033f922c9ba2d3b0f3fa79 (diff) | |
download | nextcloud-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.php | 2 |
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 |