aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggMemcache.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-11-29 22:02:39 -0500
committercash <cash.costello@gmail.com>2011-11-29 22:02:39 -0500
commit55352776b2d8ef72d59c825ec02b19df407d11bb (patch)
tree385d7959d358c8861b793a5e56e5eb1bfd93fc1e /engine/classes/ElggMemcache.php
parente16202bb6cd25dd377c348ed4b01cf2be4b9ac01 (diff)
parent7c17e93023ffc8d785b810af7551301cbd7f0457 (diff)
downloadelgg-55352776b2d8ef72d59c825ec02b19df407d11bb.tar.gz
elgg-55352776b2d8ef72d59c825ec02b19df407d11bb.tar.bz2
Merge pull request #95 from janeklb/t1995
Fixes #1995 (memcache: incorrect check for get() return value)
Diffstat (limited to 'engine/classes/ElggMemcache.php')
-rw-r--r--engine/classes/ElggMemcache.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/classes/ElggMemcache.php b/engine/classes/ElggMemcache.php
index 1fd3be0d1..a54c29723 100644
--- a/engine/classes/ElggMemcache.php
+++ b/engine/classes/ElggMemcache.php
@@ -161,7 +161,7 @@ class ElggMemcache extends ElggSharedMemoryCache {
}
$result = $this->memcache->set($key, $data, null, $expires);
- if (!$result) {
+ if ($result === false) {
elgg_log("MEMCACHE: FAILED TO SAVE $key", 'ERROR');
}
@@ -181,7 +181,7 @@ class ElggMemcache extends ElggSharedMemoryCache {
$key = $this->_makeMemcacheKey($key);
$result = $this->memcache->get($key);
- if (!$result) {
+ if ($result === false) {
elgg_log("MEMCACHE: FAILED TO LOAD $key", 'ERROR');
}