Fix bad param

This commit is contained in:
Laurent Destailleur 2023-02-13 13:33:48 +01:00
parent 4a49ca86c9
commit c1ee02c510

View File

@ -807,7 +807,7 @@ if ($action == 'addcontainer' && $usercanedit) {
$tmp['content'] = removeHtmlComment($tmp['content']);
// Check there is no PHP content into the imported file (must be only HTML + JS)
$phpcontent = dolKeepOnlyPhpCode('', $tmp['content']);
$phpcontent = dolKeepOnlyPhpCode($tmp['content']);
if ($phpcontent) {
$error++;
setEventMessages('Error getting '.$urltograb.': file that include PHP content is not allowed', null, 'errors');