summaryrefslogtreecommitdiffstats
path: root/application/libraries/MemcacheLibrary.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/libraries/MemcacheLibrary.php')
-rw-r--r--application/libraries/MemcacheLibrary.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/application/libraries/MemcacheLibrary.php b/application/libraries/MemcacheLibrary.php
index dcc08b942..dc993b7a5 100644
--- a/application/libraries/MemcacheLibrary.php
+++ b/application/libraries/MemcacheLibrary.php
@@ -90,7 +90,15 @@ class MemcacheLibrary {
*/
public function get($key) {
$this->logDebugMessage(sprintf("%s key requested from memcache", $key));
- return $this->memcachedInstance->get($key);
+
+ // hide notice if server is unreachable
+ $old_error_level = error_reporting();
+ error_reporting($old_error_level & ~E_NOTICE);
+
+ $ret = $this->memcachedInstance->get($key);
+
+ error_reporting($old_error_level);
+ return $ret;
}
/**