aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-28 19:11:20 -0800
committerCash Costello <cash.costello@gmail.com>2011-11-28 19:11:20 -0800
commitfec50c64932a7b30606d14fc0a8feb6a22793688 (patch)
tree962b45316d63b123f40f4903466cbc100826cfbc /engine
parentc09bf90c8830775d1d8a3e1e58023d03968216b3 (diff)
parentf8a55ea9a29dfdffaacbe51ced0fe8b1bcaa1848 (diff)
downloadelgg-fec50c64932a7b30606d14fc0a8feb6a22793688.tar.gz
elgg-fec50c64932a7b30606d14fc0a8feb6a22793688.tar.bz2
Merge pull request #95 from janeklb/t1995
Fixes #1995 (memcache: incorrect check for get() return value)
Diffstat (limited to 'engine')
-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');
}