]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Cache/RedisCache.php
Merge pull request #7754 from annando/aria
[friendica.git] / src / Core / Cache / RedisCache.php
index b2638c49f3ef5647831157553cc7db008c2e7b87..3558a38464ca9c20acdf343b04e31b1a207c9c04 100644 (file)
@@ -37,9 +37,9 @@ class RedisCache extends Cache implements IMemoryCache
                $redis_pw   = $config->get('system', 'redis_password');
                $redis_db   = $config->get('system', 'redis_db', 0);
 
-               if (isset($redis_port) && !$this->redis->connect($redis_host, $redis_port)) {
+               if (isset($redis_port) && !@$this->redis->connect($redis_host, $redis_port)) {
                        throw new Exception('Expected Redis server at ' . $redis_host . ':' . $redis_port . ' isn\'t available');
-               } elseif (!$this->redis->connect($redis_host)) {
+               } elseif (!@$this->redis->connect($redis_host)) {
                        throw new Exception('Expected Redis server at ' . $redis_host . ' isn\'t available');
                }