mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 23:05:18 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user