From 2e4d29e7dd59ebd30886285076ad8ec4f8b7adcd Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 16 Nov 2009 14:23:29 -0800 Subject: If an empty array is passed into set method, then make sure the tag value being stored in the database is null, not "Array" --- modules/gallery/libraries/drivers/Cache/Database.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/gallery/libraries/drivers/Cache/Database.php') diff --git a/modules/gallery/libraries/drivers/Cache/Database.php b/modules/gallery/libraries/drivers/Cache/Database.php index 43f4e38a..7e2aeabc 100644 --- a/modules/gallery/libraries/drivers/Cache/Database.php +++ b/modules/gallery/libraries/drivers/Cache/Database.php @@ -60,6 +60,8 @@ class Cache_Database_Driver implements Cache_Driver { if (!empty($tags)) { // Escape the tags, adding brackets so the tag can be explicitly matched $tags = "<" . implode(">,<", $tags) . ">"; + } else { + $tags = null; } // Cache Database driver expects unix timestamp -- cgit v1.2.3