mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:10:13 +00:00
Update false evaluations
=== false and !== false to is_null where appropriate.
This commit is contained in:
parent
09d798ba77
commit
cadfef63c4
7 changed files with 13 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue