projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a5047c
)
We need the results.
author
Jan Schneider
<jan@horde.org>
Mon, 13 Sep 2010 12:40:12 +0000
(14:40 +0200)
committer
Jan Schneider
<jan@horde.org>
Mon, 13 Sep 2010 13:35:10 +0000
(15:35 +0200)
framework/Group/lib/Horde/Group/Ldap.php
patch
|
blob
|
history
diff --git
a/framework/Group/lib/Horde/Group/Ldap.php
b/framework/Group/lib/Horde/Group/Ldap.php
index
5d41e40
..
03287be
100644
(file)
--- a/
framework/Group/lib/Horde/Group/Ldap.php
+++ b/
framework/Group/lib/Horde/Group/Ldap.php
@@
-490,7
+490,8
@@
class Horde_Group_Ldap extends Horde_Group
*/
public function getGroupParent($dn)
{
- if (@ldap_explode_dn($dn, 0) === false) {
+ $result = @ldap_explode_dn($dn, 0);
+ if ($result === false) {
throw new Horde_Group_Exception('Invalid group ID passed (bad DN syntax)');
}
@@
-514,7
+515,8
@@
class Horde_Group_Ldap extends Horde_Group
*/
public function getGroupParentList($dn)
{
- if (@ldap_explode_dn($dn, 0) === false) {
+ $result = @ldap_explode_dn($dn, 0);
+ if ($result === false) {
throw new Horde_Group_Exception('Invalid group ID passed (bad DN syntax)');
}