X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fcache.php;h=e8af8f9de119ef543415f2b93523790ca9e6aa87;hb=c0cc65304b06b027219a9f162deaab90fe2a0487;hp=0d12f8aefc3d54392f34e368b37c172aeaa7f42a;hpb=a337021c319f417250546bcd8edab5d85d25287d;p=friendica.git diff --git a/include/cache.php b/include/cache.php index 0d12f8aefc..e8af8f9de1 100644 --- a/include/cache.php +++ b/include/cache.php @@ -90,7 +90,7 @@ class Cache { // Only return a value if the serialized value is valid. // We also check if the db entry is a serialized // boolean 'false' value (which we want to return). - if ($cached === 'b:0;' || $value !== false) { + if ($cached === serialize(false) || $value !== false) { return $value; } @@ -111,7 +111,7 @@ class Cache { // Only return a value if the serialized value is valid. // We also check if the db entry is a serialized // boolean 'false' value (which we want to return). - if ($cached === 'b:0;' || $value !== false) { + if ($cached === serialize(false) || $value !== false) { return $value; } }