mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
fixed foreach warning
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9052 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e883af153e
commit
e239d46f1c
1 changed files with 17 additions and 15 deletions
|
|
@ -38,11 +38,13 @@
|
|||
|
||||
$output = $oAdminModel->getFavoriteList('0');
|
||||
|
||||
$favoriteList = $output->variables['favoriteList'];
|
||||
$favoriteList = $output->get('favoriteList');
|
||||
$favoriteModuleList = array();
|
||||
if ($favoriteList){
|
||||
foreach($favoriteList as $favorite => $favorite_info){
|
||||
$favoriteModuleList[] = $favorite_info->module;
|
||||
}
|
||||
}
|
||||
|
||||
Context::set('favoriteModuleList', $favoriteModuleList);
|
||||
Context::set('module_list', $module_list);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue