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
|
@ -110,13 +110,13 @@ EOT;
|
|||
function get_vier_config($key, $default = false, $admin = false) {
|
||||
if (local_user() && !$admin) {
|
||||
$result = PConfig::get(local_user(), "vier", $key);
|
||||
if ($result !== false) {
|
||||
if (!is_null($result)) {
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
$result = Config::get("vier", $key);
|
||||
if ($result !== false) {
|
||||
if (!is_null($result)) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue