mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix uninitialized stdClass in rarely used method
This commit is contained in:
parent
3bd25f9538
commit
508b6ed340
24 changed files with 68 additions and 19 deletions
|
|
@ -190,6 +190,7 @@ class menuAdminController extends menu
|
|||
else
|
||||
{
|
||||
// create menu item.
|
||||
$item_args = new stdClass();
|
||||
$item_args->menu_srl = $menuSrl;
|
||||
$item_args->url = $moduleInfo->mid;
|
||||
$item_args->name = $moduleInfo->mid;
|
||||
|
|
@ -1466,6 +1467,7 @@ class menuAdminController extends menu
|
|||
}
|
||||
elseif($mode == 'insert')
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->menu_item_srl = $target_srl;
|
||||
$args->parent_srl = $parent_srl;
|
||||
$args->listorder = -1*getNextSequence();
|
||||
|
|
@ -2087,6 +2089,7 @@ class menuAdminController extends menu
|
|||
{
|
||||
if(!count($menu_srl_list)) return;
|
||||
// Delete the value of menu_srls
|
||||
$args = new stdClass();
|
||||
$args->menu_srls = implode(',',$menu_srl_list);
|
||||
$output = executeQuery('menu.deleteMenuLayout', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue