This commit is contained in:
hansemschnokeloch 2024-08-27 06:51:12 +02:00 committed by GitHub
parent dcfaae3bd5
commit 8ae78a33ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -155,7 +155,7 @@ print "<br>\n";
$todisabletext = '';
$i = 0;
foreach ($arrayoffunctionstodisable as $functiontodisable) {
if (! in_array($functiontodisable, $arrayoffunctionsdisabled)) {
if (\function_exists($functiontodisable)) {
if ($i > 0) {
$todisabletext .= ', ';
}
@ -170,7 +170,7 @@ if ($todisabletext) {
$todisabletext = '';
$i = 0;
foreach ($arrayoffunctionstodisable2 as $functiontodisable) {
if (! in_array($functiontodisable, $arrayoffunctionsdisabled)) {
if (\function_exists($functiontodisable)) {
if ($i > 0) {
$todisabletext .= ', ';
}
@ -182,8 +182,7 @@ if ($todisabletext) {
print img_picto('', 'warning', 'class="pictofixedwidth"').$langs->trans("IfCLINotRequiredYouShouldDisablePHPFunctions").': '.$todisabletext;
print '<br>';
}
if (in_array($functiontokeep, $arrayoffunctionsdisabled)) {
if (!\function_exists($functiontokeep)) {
print img_picto($langs->trans("PHPFunctionsRequiredForCLI"), 'warning', 'class="pictofixedwidth"');
} else {
print img_picto('', 'tick', 'class="pictofixedwidth"');