Update false evaluations

=== false and !== false to is_null where appropriate.
This commit is contained in:
Adam Magness 2017-12-06 14:57:06 -05:00
parent 09d798ba77
commit cadfef63c4
7 changed files with 13 additions and 9 deletions

View file

@ -23,13 +23,15 @@ class Feature
{
$x = Config::get('feature_lock', $feature, false);
if ($x === false) {
if (is_null($x)) {
$x = PConfig::get($uid, 'feature', $feature, false);
}
if ($x === false) {
if (is_null($x)) {
$x = Config::get('feature', $feature, false);
}
if ($x === false) {
if (is_null($x)) {
$x = self::getDefault($feature);
}