Added function ini_bool() to compile.php to prevent warning in some compilations
This commit is contained in:
parent
eb7ee8bb18
commit
133c53f24a
1 changed files with 6 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue