lib/Auth
Aleksander Machniak
machniak at kolabsys.com
Wed Jan 8 18:34:54 CET 2014
lib/Auth/LDAP.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 3a77836aa6286df21d6a8eaf0c51e8f94b4fd584
Author: Aleksander Machniak <alec at alec.pl>
Date: Wed Jan 8 18:32:25 2014 +0100
Fix typos in memcache-related methods
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;
More information about the commits
mailing list