FIX creation of menu entry with parent id not int
This commit is contained in:
parent
5fceee3048
commit
986fb2ae38
@ -144,9 +144,9 @@ if ($action == 'add')
|
|||||||
}
|
}
|
||||||
|
|
||||||
$leftmenu=''; $mainmenu='';
|
$leftmenu=''; $mainmenu='';
|
||||||
if (GETPOST('menuId', 'int') && ! is_numeric(GETPOST('menuId', 'int')))
|
if (GETPOST('menuId', 'alpha') && ! is_numeric(GETPOST('menuId', 'alpha')))
|
||||||
{
|
{
|
||||||
$tmp=explode('&', GETPOST('menuId', 'int'));
|
$tmp=explode('&', GETPOST('menuId', 'alpha'));
|
||||||
foreach($tmp as $s)
|
foreach($tmp as $s)
|
||||||
{
|
{
|
||||||
if (preg_match('/fk_mainmenu=/', $s))
|
if (preg_match('/fk_mainmenu=/', $s))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user