Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eclipsefdn-home-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Foundation
IT
Webdev
eclipsefdn-home-data
Commits
c7df21c2
Commit
c7df21c2
authored
1 year ago
by
Christopher Guindon
Browse files
Options
Downloads
Patches
Plain Diff
Update ldapconnection.class.php
parent
b519e1d2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
httpd/eclipse-php-classes/system/ldapconnection.class.php
+2
-9
2 additions, 9 deletions
httpd/eclipse-php-classes/system/ldapconnection.class.php
with
2 additions
and
9 deletions
httpd/eclipse-php-classes/system/ldapconnection.class.php
+
2
−
9
View file @
c7df21c2
...
...
@@ -464,7 +464,7 @@ class LDAPConnection {
return
0
;
}
/**
/**
* Retrieves all LDAP attributes for a given uid.
*
* @param string $uid
...
...
@@ -501,15 +501,8 @@ class LDAPConnection {
// Get entries from search results.
$result
=
ldap_get_entries
(
$ds
,
$sr
);
if
(
$result
[
'count'
]
<=
0
)
{
ldap_close
(
$ds
);
return
array
();
}
// Return the first entry.
$entry
=
$result
[
0
];
ldap_close
(
$ds
);
return
$
entry
;
return
$
result
[
'count'
]
>
0
?
$result
[
0
]
:
array
()
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment