Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/3326'
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Jan 4, 2013
2 parents 99a6970 + f135676 commit 9978100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dn.php
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ public static function explodeDn(
throw new Exception\LdapException(null, 'DN is malformed');
}
$ret = array();
for ($i = 0; $i < count($k); $i++) {
for ($i = 0, $count = count($k); $i < $count; $i++) {
if (is_array($k[$i]) && is_array($v[$i]) && (count($k[$i]) === count($v[$i]))) {
$multi = array();
for ($j = 0; $j < count($k[$i]); $j++) {
Expand Down Expand Up @@ -756,7 +756,7 @@ public static function isChildOf($childDn, $parentDn)
if ($startIndex < 0) {
return false;
}
for ($i = 0; $i < count($pdn); $i++) {
for ($i = 0, $count = count($pdn); $i < $count; $i++) {
if ($cdn[$i + $startIndex] != $pdn[$i]) {
return false;
}
Expand Down

0 comments on commit 9978100

Please sign in to comment.