From 721ac5fb9e8119f1fcf2191a0004c2165a3f3dc3 Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Sun, 20 Nov 2016 17:32:37 +0100 Subject: [PATCH] cache: use unserialize(false) --- include/cache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.39.5