summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-06-12 04:23:52 -0700
committerMorris Jobke <morris.jobke@gmail.com>2013-06-12 04:23:52 -0700
commita39ecd5ea977f18fac9c7c3683a7988434f6b95f (patch)
tree6612a8fee2ca53b41ed248482c3b5638f164f753
parent1abce78cb84db1241bef9be835bce8e655719ca6 (diff)
parenta2fa91fdd5ee857fa697ee0664b178028ec03697 (diff)
downloadnextcloud-server-a39ecd5ea977f18fac9c7c3683a7988434f6b95f.tar.gz
nextcloud-server-a39ecd5ea977f18fac9c7c3683a7988434f6b95f.zip
Merge pull request #3681 from owncloud/fix_ajax_removeuser.php
Init language object before using it
-rw-r--r--settings/ajax/removeuser.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/ajax/removeuser.php b/settings/ajax/removeuser.php
index bf3a34f1472..8732c6518a8 100644
--- a/settings/ajax/removeuser.php
+++ b/settings/ajax/removeuser.php
@@ -21,5 +21,6 @@ if( OC_User::deleteUser( $username )) {
OC_JSON::success(array("data" => array( "username" => $username )));
}
else{
+ $l = OC_L10N::get('core');
OC_JSON::error(array("data" => array( "message" => $l->t("Unable to delete user") )));
}