mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
added protection codes
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10848 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6d1abe0497
commit
6eab5837a5
1 changed files with 2 additions and 2 deletions
|
|
@ -631,8 +631,8 @@
|
|||
$buff .= sprintf('$info->menu->%s->index=\'%s\';', $action->attrs->menu_name, $name);
|
||||
}
|
||||
if(is_array($info->menu->{$action->attrs->menu_name}->acts)) {
|
||||
array_push($info->menu->{$action->attrs->menu_name}->acts, $name);
|
||||
$currentKey = array_search($name, $info->menu->{$action->attrs->menu_name}->acts);
|
||||
@array_push($info->menu->{$action->attrs->menu_name}->acts, $name);
|
||||
$currentKey = @array_search($name, $info->menu->{$action->attrs->menu_name}->acts);
|
||||
}
|
||||
|
||||
$buff .= sprintf('$info->menu->%s->acts[%d]=\'%s\';', $action->attrs->menu_name, $currentKey, $name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue