Fix bad param
This commit is contained in:
parent
4a49ca86c9
commit
c1ee02c510
@ -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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user