* Adjust code

This commit is contained in:
zenggang
2022-05-13 00:44:07 +00:00
parent e41dc21372
commit 94bf6a70a2
2 changed files with 3 additions and 5 deletions

View File

@@ -52,9 +52,7 @@ class program extends control
else
{
$topPrograms = $this->program->getList($status, $orderBy, $pager, 'top');
$programIds = array();
foreach($topPrograms as $programID => $program) $programIds[] = $programID;
$programs = $this->program->getList($status, $orderBy, null, 'child', $programIds);
$programs = $this->program->getList($status, $orderBy, null, 'child', $topPrograms);
/* Get summary. */
$topCount = $indCount = 0;