]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: The caching of values didn't really work for boolean values
authorMichael <heluecht@pirati.ca>
Thu, 19 Jan 2017 22:47:20 +0000 (22:47 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 19 Jan 2017 22:47:20 +0000 (22:47 +0000)
include/Core/Config.php

index 574ff5b8a53c54fa00fd5b3f7bce3c5db0b965b8..1d0e66ddc0f15053a2345513e2542b77d71035f0 100644 (file)
@@ -38,7 +38,7 @@ class Config {
 
                // We don't preload "system" anymore.
                // This reduces the number of database reads a lot.
-               if ($family == 'system') {
+               if ($family === 'system') {
                        return;
                }
 
@@ -88,7 +88,7 @@ class Config {
 
                        // Do we have the cached value? Then return it
                        if (isset(self::$cache[$family][$key])) {
-                               if (self::$cache[$family][$key] == '!<unset>!') {
+                               if (self::$cache[$family][$key] === '!<unset>!') {
                                        return $default_value;
                                } else {
                                        return self::$cache[$family][$key];
@@ -141,7 +141,7 @@ class Config {
 
                $stored = self::get($family, $key);
 
-               if ($stored == $value) {
+               if ($stored === $value) {
                        return true;
                }