|
@@ 448-453 (lines=6) @@
|
| 445 |
|
$offset += $limit; |
| 446 |
|
} while ($this->access->hasMoreResults()); |
| 447 |
|
|
| 448 |
|
if(count($groupNames) > 0) { |
| 449 |
|
natsort($groupNames); |
| 450 |
|
$this->result->addOptions($dbKey, array_values($groupNames)); |
| 451 |
|
} else { |
| 452 |
|
throw new \Exception(self::$l->t('Could not find the desired feature')); |
| 453 |
|
} |
| 454 |
|
|
| 455 |
|
$setFeatures = $this->configuration->$confKey; |
| 456 |
|
if(is_array($setFeatures) && !empty($setFeatures)) { |
|
@@ 1229-1237 (lines=9) @@
|
| 1226 |
|
$availableFeatures = |
| 1227 |
|
$this->cumulativeSearchOnAttribute($objectclasses, $attr, |
| 1228 |
|
$dig, $maxEntryObjC); |
| 1229 |
|
if(is_array($availableFeatures) |
| 1230 |
|
&& count($availableFeatures) > 0) { |
| 1231 |
|
natcasesort($availableFeatures); |
| 1232 |
|
//natcasesort keeps indices, but we must get rid of them for proper |
| 1233 |
|
//sorting in the web UI. Therefore: array_values |
| 1234 |
|
$this->result->addOptions($dbkey, array_values($availableFeatures)); |
| 1235 |
|
} else { |
| 1236 |
|
throw new \Exception(self::$l->t('Could not find the desired feature')); |
| 1237 |
|
} |
| 1238 |
|
|
| 1239 |
|
$setFeatures = $this->configuration->$confkey; |
| 1240 |
|
if(is_array($setFeatures) && !empty($setFeatures)) { |