Fix create left menu entry
This commit is contained in:
parent
639dfa09aa
commit
d86017b8ff
@ -144,6 +144,22 @@ if ($action == 'add')
|
|||||||
}
|
}
|
||||||
|
|
||||||
$leftmenu=''; $mainmenu='';
|
$leftmenu=''; $mainmenu='';
|
||||||
|
if (! empty($_POST['menuId']) && ! is_numeric($_POST['menuId']))
|
||||||
|
{
|
||||||
|
$tmp=explode('&',$_POST['menuId']);
|
||||||
|
foreach($tmp as $s)
|
||||||
|
{
|
||||||
|
if (preg_match('/fk_mainmenu=/',$s))
|
||||||
|
{
|
||||||
|
$mainmenu=preg_replace('/fk_mainmenu=/','',$s);
|
||||||
|
}
|
||||||
|
if (preg_match('/fk_leftmenu=/',$s))
|
||||||
|
{
|
||||||
|
$leftmenu=preg_replace('/fk_leftmenu=/','',$s);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (GETPOST('menuId', 'alpha') && ! is_numeric(GETPOST('menuId', 'alpha')))
|
if (GETPOST('menuId', 'alpha') && ! is_numeric(GETPOST('menuId', 'alpha')))
|
||||||
{
|
{
|
||||||
$tmp=explode('&', GETPOST('menuId', 'alpha'));
|
$tmp=explode('&', GETPOST('menuId', 'alpha'));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user