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; return false;
} }
if (strtoupper($value) == 'YES') { # YES $value = strtoupper($value);
if ($value == 'YES' || $value == 'TRUE') { # YES
return true; return true;
} elseif (strtoupper($value) == 'NO') { # NO } elseif ($value == 'NO' || $value == 'FALSE') { # NO
return false; return false;
} else { # unknown value } else { # unknown value
# show and log error message on unknown value # show and log error message on unknown value

Loading…
Cancel
Save