]> git.mxchange.org Git - friendica.git/commitdiff
Undo changes to Feature
authorAdam Magness <adam.magness@gmail.com>
Wed, 6 Dec 2017 20:18:45 +0000 (15:18 -0500)
committerAdam Magness <adam.magness@gmail.com>
Wed, 6 Dec 2017 20:18:45 +0000 (15:18 -0500)
the evaluations were correct before.

src/Content/Feature.php

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