mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-24 16:36:51 +00:00
nextcloud: config files: do not compare against false
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
164d4fb997
commit
151b05ec01
3 changed files with 7 additions and 7 deletions
|
|
@ -9,13 +9,13 @@ if (getenv('REDIS_HOST')) {
|
|||
),
|
||||
);
|
||||
|
||||
if (getenv('REDIS_HOST_PORT') !== false) {
|
||||
if (getenv('REDIS_HOST_PORT')) {
|
||||
$CONFIG['redis']['port'] = (int) getenv('REDIS_HOST_PORT');
|
||||
} elseif (getenv('REDIS_HOST')[0] != '/') {
|
||||
$CONFIG['redis']['port'] = 6379;
|
||||
}
|
||||
|
||||
if (getenv('REDIS_DB_INDEX') !== false) {
|
||||
if (getenv('REDIS_DB_INDEX')) {
|
||||
$CONFIG['redis']['dbindex'] = (int) getenv('REDIS_DB_INDEX');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue