FIX creation of menu entry with parent id not int

Conflicts:
	htdocs/admin/menus/edit.php
This commit is contained in:
Laurent Destailleur 2019-02-12 19:09:27 +01:00
parent affbd20cdb
commit 1f9f335e44

View File

@ -144,9 +144,9 @@ if ($action == 'add')
}
$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)
{
if (preg_match('/fk_mainmenu=/',$s))