diff options
-rw-r--r-- | lib/Auth/LDAP.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php index 5850672..0075166 100644 --- a/lib/Auth/LDAP.php +++ b/lib/Auth/LDAP.php @@ -1622,7 +1622,7 @@ class LDAP extends Net_LDAP3 { public function get_cache_data($key) { if ($cache = $this->get_cache()) { - return $cache->get($ckey); + return $cache->get($key); } } @@ -1638,8 +1638,8 @@ class LDAP extends Net_LDAP3 { public function set_cache_data($key, $data, $ttl = 3600) { if ($cache = $this->get_cache()) { - if (!$cache->replace($ckey, $data, MEMCACHE_COMPRESSED, $ttl)) { - return $cache->set($ckey, $data, MEMCACHE_COMPRESSED, $ttl); + if (!$cache->replace($key, $data, MEMCACHE_COMPRESSED, $ttl)) { + return $cache->set($key, $data, MEMCACHE_COMPRESSED, $ttl); } else { return true; |