mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 04:09:55 +09:00
issue 160 array check
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9123 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ad66c95b31
commit
635321ca12
1 changed files with 13 additions and 10 deletions
|
|
@ -32,18 +32,21 @@
|
|||
$oAutoinstallModel = &getModel('autoinstall');
|
||||
|
||||
$module_list = $oModuleModel->getModuleList();
|
||||
foreach($module_list as $key => $val) {
|
||||
$module_list[$key]->delete_url = $oAutoinstallModel->getRemoveUrlByPath($val->path);
|
||||
if(is_array($module_list))
|
||||
{
|
||||
foreach($module_list as $key => $val) {
|
||||
$module_list[$key]->delete_url = $oAutoinstallModel->getRemoveUrlByPath($val->path);
|
||||
|
||||
// get easyinstall need update
|
||||
$packageSrl = $oAutoinstallModel->getPackageSrlByPath($val->path);
|
||||
$package = $oAutoinstallModel->getInstalledPackages($packageSrl);
|
||||
$module_list[$key]->need_autoinstall_update = $package[$packageSrl]->need_update;
|
||||
// get easyinstall need update
|
||||
$packageSrl = $oAutoinstallModel->getPackageSrlByPath($val->path);
|
||||
$package = $oAutoinstallModel->getInstalledPackages($packageSrl);
|
||||
$module_list[$key]->need_autoinstall_update = $package[$packageSrl]->need_update;
|
||||
|
||||
// get easyinstall update url
|
||||
if ($module_list[$key]->need_autoinstall_update)
|
||||
{
|
||||
$module_list[$key]->update_url = $oAutoinstallModel->getUpdateUrlByPackageSrl($packageSrl);
|
||||
// get easyinstall update url
|
||||
if ($module_list[$key]->need_autoinstall_update)
|
||||
{
|
||||
$module_list[$key]->update_url = $oAutoinstallModel->getUpdateUrlByPackageSrl($packageSrl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue