If an empty array is passed into set method, then make sure the tag value being stored in the database is null, not "Array"

This commit is contained in:
Tim Almdal
2009-11-16 14:23:29 -08:00
parent 14f1fc30b5
commit 2e4d29e7dd
@@ -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