]> git.mxchange.org Git - friendica.git/commitdiff
null is not false
authorMichael <heluecht@pirati.ca>
Tue, 7 Nov 2017 21:41:38 +0000 (21:41 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 7 Nov 2017 21:41:38 +0000 (21:41 +0000)
include/features.php

index 3ef007cd6111cec0ae3c4d28940bc4aeaab1f2c7..5ff93eacd9ac15d00931ec2f121b92fc19678e54 100644 (file)
@@ -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);
                        }
                }