mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
fixed foreach warning, fixed category when first enter
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9056 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fc3a39b65a
commit
122942933d
2 changed files with 9 additions and 4 deletions
|
|
@ -127,10 +127,13 @@
|
|||
$args->page_count = 5;
|
||||
$output = executeQueryArray("autoinstall.getInstalledPackageList", $args);
|
||||
$res = array();
|
||||
foreach($output->data as $val)
|
||||
{
|
||||
$res[$val->package_srl] = $val;
|
||||
}
|
||||
if ($output->data)
|
||||
{
|
||||
foreach($output->data as $val)
|
||||
{
|
||||
$res[$val->package_srl] = $val;
|
||||
}
|
||||
}
|
||||
$output->data = $res;
|
||||
return $output;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue