summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-11-16 14:23:29 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-11-16 14:23:29 -0800
commit2e4d29e7dd59ebd30886285076ad8ec4f8b7adcd (patch)
treeab677b0196cae45db3b26786e6fe21d074bd9c8b
parent14f1fc30b519a49701cbcf49d6df675597cba8d0 (diff)
If an empty array is passed into set method, then make sure the tag value being stored in the database is null, not "Array"
-rw-r--r--modules/gallery/libraries/drivers/Cache/Database.php2
1 files changed, 2 insertions, 0 deletions
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