git.cweiske.de
/
bdrem.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
302ee74
)
fix ldap driver when p=0 and n=0
author
Christian Weiske
<
[email protected]
>
Thu, 13 Feb 2014 19:55:19 +0000
(20:55 +0100)
committer
Christian Weiske
<
[email protected]
>
Thu, 13 Feb 2014 19:55:19 +0000
(20:55 +0100)
src/bdrem/Source/Ldap.php
patch
|
blob
|
history
diff --git
a/src/bdrem/Source/Ldap.php
b/src/bdrem/Source/Ldap.php
index 802d70921b6ef24ee9394ae732c0fced98ea9569..335be07f5db4e290b6aba3aa19509327f2de19fd 100644
(file)
--- a/
src/bdrem/Source/Ldap.php
+++ b/
src/bdrem/Source/Ldap.php
@@
-53,7
+53,11
@@
class Source_Ldap
$filters[] = \Net_LDAP2_Filter::create($dateAttribute, 'ends', $day);
}
- $filter = \Net_LDAP2_Filter::combine('or', $filters);
+ if (count($filters) < 2) {
+ $filter = $filters[0];
+ } else {
+ $filter = \Net_LDAP2_Filter::combine('or', $filters);
+ }
$options = array(
'scope' => 'sub',
'attributes' => array(