diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index 3a118891f4053bd0b63ec80c068d34a6c40da8f9..a0ec64b3f605644bea41f4c64cd4e18af4c345f4 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -1171,6 +1171,7 @@ class Access extends LDAPUtility implements user\IUserTools {
 
 	/**
 	 * returns the filter used for counting users
+	 * @return string
 	 */
 	public function getFilterForUserCount() {
 		$filter = $this->combineFilterWithAnd(array(
diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php
index 2f8d97c89da9dd9ad73e0c52205586cfbeee99d9..578a920f00ec2fcaedad3cde85586bf48b6d2118 100644
--- a/apps/user_ldap/lib/wizard.php
+++ b/apps/user_ldap/lib/wizard.php
@@ -158,6 +158,7 @@ class Wizard extends LDAPUtility {
 	 * detects the display name attribute. If a setting is already present that
 	 * returns at least one hit, the detection will be canceled.
 	 * @return WizardResult|bool
+	 * @throws \Exception
 	 */
 	public function detectUserDisplayNameAttribute() {
 		if(!$this->checkRequirements(array('ldapHost',
@@ -192,7 +193,7 @@ class Wizard extends LDAPUtility {
 			}
 		};
 
-		throw new \Exception(self::$t->l('Could not detect user display name attribute. Please specify it yourself in advanced ldap settings.'));
+		throw new \Exception(self::$l->t('Could not detect user display name attribute. Please specify it yourself in advanced ldap settings.'));
 	}
 
 	/**