null is not false
This commit is contained in:
parent
2c40fc4a02
commit
9860488eec
1 changed files with 3 additions and 3 deletions
|
@ -16,11 +16,11 @@ use Friendica\Core\PConfig;
|
||||||
function feature_enabled($uid, $feature) {
|
function feature_enabled($uid, $feature) {
|
||||||
$x = Config::get('feature_lock', $feature);
|
$x = Config::get('feature_lock', $feature);
|
||||||
|
|
||||||
if ($x === false) {
|
if (is_null($x)) {
|
||||||
$x = PConfig::get($uid, 'feature', $feature);
|
$x = PConfig::get($uid, 'feature', $feature);
|
||||||
if ($x === false) {
|
if (is_null($x)) {
|
||||||
$x = Config::get('feature', $feature);
|
$x = Config::get('feature', $feature);
|
||||||
if ($x === false) {
|
if (is_null($x)) {
|
||||||
$x = get_feature_default($feature);
|
$x = get_feature_default($feature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue