Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-10-15 19:16:47 +0400
committerArthur Schiwon <blizzz@owncloud.com>2012-10-15 19:17:37 +0400
commit800fd5fd798567d899b1559ca3e91dc15212d027 (patch)
treeb3cafba8220518ad031ec13106ed2902ea9607c0 /apps
parent0b42d702590208ab687ba953f6b0516f6bd48975 (diff)
LDAP: check if index is set, fix Notices
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/access.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index 66007d09536..a500e1bf5b4 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -339,7 +339,8 @@ abstract class Access {
$ownCloudNames = array();
foreach($ldapObjects as $ldapObject) {
- $ocname = $this->dn2ocname($ldapObject['dn'], $ldapObject[$nameAttribute], $isUsers);
+ $nameByLDAP = isset($ldapObject[$nameAttribute]) ? $ldapObject[$nameAttribute] : null;
+ $ocname = $this->dn2ocname($ldapObject['dn'], $nameByLDAP, $isUsers);
if($ocname) {
$ownCloudNames[] = $ocname;
}