diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-01-08 18:32:25 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-01-08 18:34:46 +0100 |
commit | 3a77836aa6286df21d6a8eaf0c51e8f94b4fd584 (patch) | |
tree | c7c6c9d90c01721955ccb7b4fe7c2748ed55f7aa | |
parent | caea493be85751083d177016f83faca7759c56b0 (diff) | |
download | webadmin-3a77836aa6286df21d6a8eaf0c51e8f94b4fd584.tar.gz |
Fix typos in memcache-related methods
-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; |