summaryrefslogtreecommitdiff
path: root/kohana/libraries/drivers/Cache/Xcache.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-17 18:56:01 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-17 18:56:01 +0000
commit208fc9db683c51e3bcf1f24d1e5e0200e0f32d96 (patch)
tree68ef623d8c6e13cc15fc2fe6dbe13a32585b9fa6 /kohana/libraries/drivers/Cache/Xcache.php
parent3f87c16223d7aca44f432efe99b35ab7afb0dbe4 (diff)
Update Kohana to r4081.
This resolves ticket http://dev.kohanaphp.com/ticket/1156 1156: "Table prefix gets append to column name" All tests pass.
Diffstat (limited to 'kohana/libraries/drivers/Cache/Xcache.php')
-rw-r--r--kohana/libraries/drivers/Cache/Xcache.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/kohana/libraries/drivers/Cache/Xcache.php b/kohana/libraries/drivers/Cache/Xcache.php
index 5d027eec..8d31993a 100644
--- a/kohana/libraries/drivers/Cache/Xcache.php
+++ b/kohana/libraries/drivers/Cache/Xcache.php
@@ -25,9 +25,12 @@ class Cache_Xcache_Driver implements Cache_Driver {
return NULL;
}
- public function set($id, $data, $tags, $lifetime)
+ public function set($id, $data, array $tags = NULL, $lifetime)
{
- count($tags) and Kohana::log('error', 'Cache: tags are unsupported by the Xcache driver');
+ if ( ! empty($tags))
+ {
+ Kohana::log('error', 'Cache: tags are unsupported by the Xcache driver');
+ }
return xcache_set($id, $data, $lifetime);
}