From fd0c0a608a5de2b26c29d3c44a7929e5a3b2c042 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 18 May 2009 00:14:07 +0000 Subject: Updated kohana and modules/unit_test to upstream r4356 --- kohana/libraries/Cache.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kohana/libraries/Cache.php') diff --git a/kohana/libraries/Cache.php b/kohana/libraries/Cache.php index 3fb5a31c..3dcf0312 100644 --- a/kohana/libraries/Cache.php +++ b/kohana/libraries/Cache.php @@ -135,13 +135,13 @@ class Cache_Core { * Set a cache item by id. Tags may also be added and a custom lifetime * can be set. Non-string data is automatically serialized. * - * @param string unique cache id - * @param mixed data to cache - * @param array tags for this item - * @param integer number of seconds until the cache expires + * @param string unique cache id + * @param mixed data to cache + * @param array|string tags for this item + * @param integer number of seconds until the cache expires * @return boolean */ - function set($id, $data, array $tags = NULL, $lifetime = NULL) + function set($id, $data, $tags = NULL, $lifetime = NULL) { if (is_resource($data)) throw new Kohana_Exception('cache.resources'); @@ -155,7 +155,7 @@ class Cache_Core { $lifetime = $this->config['lifetime']; } - return $this->driver->set($id, $data, $tags, $lifetime); + return $this->driver->set($id, $data, (array) $tags, $lifetime); } /** -- cgit v1.2.3