mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
issue 1945, do not display incorrect packages
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11301 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
11de1924e3
commit
45f8ff88ed
1 changed files with 14 additions and 1 deletions
|
|
@ -259,10 +259,23 @@
|
|||
$res = array();
|
||||
foreach($package_list as $package_srl => $package)
|
||||
{
|
||||
$res[] = $item_list[$package_srl];
|
||||
if($item_list[$package_srl])
|
||||
{
|
||||
$res[] = $item_list[$package_srl];
|
||||
}
|
||||
}
|
||||
Context::set('item_list', $res);
|
||||
}
|
||||
|
||||
if(count($package_list) != count($res))
|
||||
{
|
||||
$localPackageSrls = array_keys($package_list);
|
||||
$remotePackageSrls = array_keys($item_list);
|
||||
$targetPackageSrls = array_diff($localPackageSrls, $remotePackageSrls);
|
||||
$countDiff = count($targetPackageSrls);
|
||||
$output->page_navigation->total_count -= $countDiff;
|
||||
}
|
||||
|
||||
Context::set('page_navigation', $output->page_navigation);
|
||||
|
||||
$this->setTemplateFile('index');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue