Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory
Commits
50943527
Verified
Commit
50943527
authored
1 month ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
(ldap) - fixes login issue
Fixes a wrong conditional statement.
parent
fea543fd
core-php8
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/class_ldap.inc
+1
-7
include/class_ldap.inc
with
1 addition
and
7 deletions
+1
-7
include/class_ldap.inc
+
1
−
7
View file @
50943527
...
...
@@ -607,13 +607,7 @@ class LDAP
function
count
(
$srp
)
{
if
(
$this
->
hascon
)
{
if
(
$this
->
hasres
[
$srp
])
{
// Method ldap_read can return array of ldap\result (multiple ldap instances) or FALSE. We escape both.
// This is cleary a quick fix for php8.2 adaptation ...
if
(
is_bool
(
$this
->
hasres
[
$srp
])
||
is_array
(
$this
->
hasres
[
$srp
]))
{
logging
::
debug
(
DEBUG_LDAP
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
$this
->
error
,
'count()'
);
return
FALSE
;
}
if
(
$this
->
hasres
[
$srp
]
&&
!
is_bool
(
$this
->
start
[
$srp
]))
{
$rv
=
@
ldap_count_entries
(
$this
->
cid
,
$this
->
sr
[
$srp
]);
$this
->
error
=
@
ldap_error
(
$this
->
cid
);
logging
::
debug
(
DEBUG_LDAP
,
__LINE__
,
__FUNCTION__
,
__FILE__
,
$this
->
error
,
'count()'
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets