From 4d9738bfcce189f118aa0d391bacf71692cb6b74 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Fri, 19 Jul 2019 20:57:18 +0200 Subject: [PATCH] HotFix for redis.config.php fatal error --- .config/01redis.config.php | 2 ++ 2019.06/apache/config/01redis.config.php | 2 ++ 2019.06/fpm-alpine/config/01redis.config.php | 2 ++ 2019.06/fpm/config/01redis.config.php | 2 ++ 2019.09-dev/apache/config/01redis.config.php | 2 ++ 2019.09-dev/fpm-alpine/config/01redis.config.php | 2 ++ 2019.09-dev/fpm/config/01redis.config.php | 2 ++ 7 files changed, 14 insertions(+) diff --git a/.config/01redis.config.php b/.config/01redis.config.php index 422e4a5..1a43c95 100644 --- a/.config/01redis.config.php +++ b/.config/01redis.config.php @@ -10,4 +10,6 @@ if (getenv('REDIS_HOST')) { 'redis_db' => (getenv('REDIS_DB') ? getenv('REDIS_DB') : 0), ], ]; +} else { + return []; } diff --git a/2019.06/apache/config/01redis.config.php b/2019.06/apache/config/01redis.config.php index 422e4a5..1a43c95 100644 --- a/2019.06/apache/config/01redis.config.php +++ b/2019.06/apache/config/01redis.config.php @@ -10,4 +10,6 @@ if (getenv('REDIS_HOST')) { 'redis_db' => (getenv('REDIS_DB') ? getenv('REDIS_DB') : 0), ], ]; +} else { + return []; } diff --git a/2019.06/fpm-alpine/config/01redis.config.php b/2019.06/fpm-alpine/config/01redis.config.php index 422e4a5..1a43c95 100644 --- a/2019.06/fpm-alpine/config/01redis.config.php +++ b/2019.06/fpm-alpine/config/01redis.config.php @@ -10,4 +10,6 @@ if (getenv('REDIS_HOST')) { 'redis_db' => (getenv('REDIS_DB') ? getenv('REDIS_DB') : 0), ], ]; +} else { + return []; } diff --git a/2019.06/fpm/config/01redis.config.php b/2019.06/fpm/config/01redis.config.php index 422e4a5..1a43c95 100644 --- a/2019.06/fpm/config/01redis.config.php +++ b/2019.06/fpm/config/01redis.config.php @@ -10,4 +10,6 @@ if (getenv('REDIS_HOST')) { 'redis_db' => (getenv('REDIS_DB') ? getenv('REDIS_DB') : 0), ], ]; +} else { + return []; } diff --git a/2019.09-dev/apache/config/01redis.config.php b/2019.09-dev/apache/config/01redis.config.php index 422e4a5..1a43c95 100644 --- a/2019.09-dev/apache/config/01redis.config.php +++ b/2019.09-dev/apache/config/01redis.config.php @@ -10,4 +10,6 @@ if (getenv('REDIS_HOST')) { 'redis_db' => (getenv('REDIS_DB') ? getenv('REDIS_DB') : 0), ], ]; +} else { + return []; } diff --git a/2019.09-dev/fpm-alpine/config/01redis.config.php b/2019.09-dev/fpm-alpine/config/01redis.config.php index 422e4a5..1a43c95 100644 --- a/2019.09-dev/fpm-alpine/config/01redis.config.php +++ b/2019.09-dev/fpm-alpine/config/01redis.config.php @@ -10,4 +10,6 @@ if (getenv('REDIS_HOST')) { 'redis_db' => (getenv('REDIS_DB') ? getenv('REDIS_DB') : 0), ], ]; +} else { + return []; } diff --git a/2019.09-dev/fpm/config/01redis.config.php b/2019.09-dev/fpm/config/01redis.config.php index 422e4a5..1a43c95 100644 --- a/2019.09-dev/fpm/config/01redis.config.php +++ b/2019.09-dev/fpm/config/01redis.config.php @@ -10,4 +10,6 @@ if (getenv('REDIS_HOST')) { 'redis_db' => (getenv('REDIS_DB') ? getenv('REDIS_DB') : 0), ], ]; +} else { + return []; }