From: Michael Date: Tue, 7 Nov 2017 21:41:38 +0000 (+0000) Subject: null is not false X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9860488eec19aefa7527bcd14a1abc8558b4c369;p=friendica.git null is not false --- diff --git a/include/features.php b/include/features.php index 3ef007cd61..5ff93eacd9 100644 --- a/include/features.php +++ b/include/features.php @@ -16,11 +16,11 @@ use Friendica\Core\PConfig; function feature_enabled($uid, $feature) { $x = Config::get('feature_lock', $feature); - if ($x === false) { + if (is_null($x)) { $x = PConfig::get($uid, 'feature', $feature); - if ($x === false) { + if (is_null($x)) { $x = Config::get('feature', $feature); - if ($x === false) { + if (is_null($x)) { $x = get_feature_default($feature); } }