summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-01-08 17:32:25 (GMT)
committerAleksander Machniak <alec@alec.pl>2014-01-08 17:32:25 (GMT)
commit62f17678edda693f0d7cdd929911f118e5c6b0a5 (patch)
tree546aedb4a9b34aac1974ef8ec0a4d3a00e34e44a
parentb0adb904918c43251bbf6c969bf3e24ea4733fd8 (diff)
downloadkolab-wap-62f17678edda693f0d7cdd929911f118e5c6b0a5.tar.gz
Fix typos in memcache-related methods
-rw-r--r--lib/Auth/LDAP.php6
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;