diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-05-18 00:14:07 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-18 00:14:07 +0000 |
| commit | fd0c0a608a5de2b26c29d3c44a7929e5a3b2c042 (patch) | |
| tree | 387f2628cae3580b7f09682de6e908d002c5fbb0 /kohana/libraries/Cache.php | |
| parent | 5a6aef9c23930b1de609c9914297e0f97bc49a11 (diff) | |
Updated kohana and modules/unit_test to upstream r4356
Diffstat (limited to 'kohana/libraries/Cache.php')
| -rw-r--r-- | kohana/libraries/Cache.php | 12 |
1 files changed, 6 insertions, 6 deletions
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); } /** |
