aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-05-04 14:13:23 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-05-04 14:13:23 +0200
commit907fa9d85b7a90ef638fc65ec87a0f1f2138ca1e (patch)
tree8dfcffefcbd57b66174a7604a44eedfd07274839 /apps/user_ldap
parent716c5a3c8e389c1d522355b3d407afcd8a41e673 (diff)
downloadnextcloud-server-907fa9d85b7a90ef638fc65ec87a0f1f2138ca1e.tar.gz
nextcloud-server-907fa9d85b7a90ef638fc65ec87a0f1f2138ca1e.zip
LDAP: check first, if requested attribute exists
Diffstat (limited to 'apps/user_ldap')
-rwxr-xr-xapps/user_ldap/lib_ldap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib_ldap.php b/apps/user_ldap/lib_ldap.php
index bfe5965d9a3..c71c0cb7e54 100755
--- a/apps/user_ldap/lib_ldap.php
+++ b/apps/user_ldap/lib_ldap.php
@@ -406,7 +406,7 @@ class OC_LDAP {
$er = ldap_first_entry($cr, $rr);
$result = ldap_get_attributes($cr, $er);
- if($result[$attr]['count'] > 0){
+ if(isset($result[$attr]) && $result[$attr]['count'] > 0){
$values = array();
for($i=0;$i<$result[$attr]['count'];$i++) {
$values[] = $result[$attr][$i];