support TRUE orFALSE strings just incase

pull/287/head
David Goodwin 5 years ago
parent 01477f0009
commit c53d17fff7

@ -199,9 +199,10 @@ final class Config {
return false;
}
if (strtoupper($value) == 'YES') { # YES
$value = strtoupper($value);
if ($value == 'YES' || $value == 'TRUE') { # YES
return true;
} elseif (strtoupper($value) == 'NO') { # NO
} elseif ($value == 'NO' || $value == 'FALSE') { # NO
return false;
} else { # unknown value
# show and log error message on unknown value

Loading…
Cancel
Save