Added function ini_bool() to compile.php to prevent warning in some compilations

This commit is contained in:
adminerevo 2023-12-01 22:54:08 +01:00
parent eb7ee8bb18
commit 133c53f24a

View file

@ -340,6 +340,12 @@ function number_type() {
return '';
}
function ini_bool($ini) {
$val = ini_get($ini);
return (preg_match('~^(on|true|yes)$~i', $val) || (int) $val); // boolean values set by php_value are strings
}
$project = "adminer";
if ($_SERVER["argv"][1] == "editor") {
$project = "editor";