Only sort children after reading additional entries
This commit is contained in:
@@ -301,6 +301,8 @@ abstract class Tree {
|
||||
if ($nolimit)
|
||||
@set_time_limit($_SESSION[APPCONFIG]->getValue('search','time_limit'));
|
||||
|
||||
$this->entries[$dnlower]->readingChildren(true);
|
||||
|
||||
foreach ($ldap['children'] as $child) {
|
||||
if (DEBUG_ENABLED)
|
||||
debug_log('Adding (%s)',64,0,__FILE__,__LINE__,__METHOD__,$child);
|
||||
@@ -309,6 +311,8 @@ abstract class Tree {
|
||||
$this->entries[$dnlower]->addChild($child);
|
||||
}
|
||||
|
||||
$this->entries[$dnlower]->readingChildren(false);
|
||||
|
||||
if (count($this->entries[$dnlower]->getChildren()) == $ldap['child_limit'])
|
||||
$this->entries[$dnlower]->setSizeLimited();
|
||||
else
|
||||
|
Reference in New Issue
Block a user