mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
Fix unnecessary cast to array after executeQuery()
This commit is contained in:
parent
80afa6720c
commit
d0916abf7f
1 changed files with 1 additions and 3 deletions
|
|
@ -1841,7 +1841,7 @@ class menuAdminController extends menu
|
||||||
// Get a list of menu items corresponding to menu_srl by listorder
|
// Get a list of menu items corresponding to menu_srl by listorder
|
||||||
$args->menu_srl = $menu_srl;
|
$args->menu_srl = $menu_srl;
|
||||||
$args->sort_index = 'listorder';
|
$args->sort_index = 'listorder';
|
||||||
$output = executeQuery('menu.getMenuItems', $args);
|
$output = executeQueryArray('menu.getMenuItems', $args);
|
||||||
if(!$output->toBool()) return $output;
|
if(!$output->toBool()) return $output;
|
||||||
// If no data found, generate an XML file without node data
|
// If no data found, generate an XML file without node data
|
||||||
$list = $output->data;
|
$list = $output->data;
|
||||||
|
|
@ -1851,8 +1851,6 @@ class menuAdminController extends menu
|
||||||
FileHandler::writeFile($php_file, '<?php if(!defined("__XE__")) exit(); ?>');
|
FileHandler::writeFile($php_file, '<?php if(!defined("__XE__")) exit(); ?>');
|
||||||
return $xml_file;
|
return $xml_file;
|
||||||
}
|
}
|
||||||
// Change to an array if only a single data is obtained
|
|
||||||
if(!is_array($list)) $list = array($list);
|
|
||||||
// Create a tree for loop
|
// Create a tree for loop
|
||||||
foreach ($list as $node)
|
foreach ($list as $node)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue