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:
flyskyko 2011-09-06 09:30:09 +00:00
parent fc3a39b65a
commit 122942933d
2 changed files with 9 additions and 4 deletions

View file

@ -240,6 +240,8 @@
{
$oController = &getAdminController('autoinstall');
$oController->_updateinfo();
header('location: ' . getNotEncodedUrl('', 'module', 'admin', 'act', 'dispAutoinstallAdminIndex'));
return;
}
$page = Context::get('page');

View file

@ -127,10 +127,13 @@
$args->page_count = 5;
$output = executeQueryArray("autoinstall.getInstalledPackageList", $args);
$res = array();
if ($output->data)
{
foreach($output->data as $val)
{
$res[$val->package_srl] = $val;
}
}
$output->data = $res;
return $output;
}