summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorIvan Tcholakov <ivantcholakov@gmail.com>2014-08-18 09:02:49 +0200
committerIvan Tcholakov <ivantcholakov@gmail.com>2014-08-18 09:02:49 +0200
commitc773a484301ba147b6e849114097152518b9d4ee (patch)
tree150c1858b4bac6556e9c17dbcd5437f5dcbbd9a0 /system
parente838c836fbe5ff5859e7a4450032572af31323e6 (diff)
Cache_redis: Strinct array_search() for now.
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php
index 68d96334f..c0200aab7 100644
--- a/system/libraries/Cache/drivers/Cache_redis.php
+++ b/system/libraries/Cache/drivers/Cache_redis.php
@@ -107,7 +107,7 @@ class CI_Cache_redis extends CI_Driver
{
$data = serialize($data);
- if (($index_key = array_search($id, $this->_serialized)) === FALSE)
+ if (($index_key = array_search($id, $this->_serialized, TRUE)) === FALSE)
{
$this->_serialized[] = $id;
}
@@ -116,7 +116,7 @@ class CI_Cache_redis extends CI_Driver
}
else
{
- if (($index_key = array_search($id, $this->_serialized)) !== FALSE)
+ if (($index_key = array_search($id, $this->_serialized, TRUE)) !== FALSE)
{
unset($this->_serialized[$index_key]);
}
@@ -139,7 +139,7 @@ class CI_Cache_redis extends CI_Driver
*/
public function delete($key)
{
- if (($index_key = array_search($key, $this->_serialized)) !== FALSE)
+ if (($index_key = array_search($key, $this->_serialized, TRUE)) !== FALSE)
{
unset($this->_serialized[$index_key]);
}