fix(database): use && instead of || for conf null/empty checks

`||` caused config volumes to mount even when conf was null,
since `!is_null(null)` is false but `!empty(null)` is true —
condition always evaluated to true.
This commit is contained in:
Andras Bacsai committed 2026-04-20 13:12:16 +02:00
1 parent 57ea0764b8
commit 03bf3d5353
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -166,7 +166,7 @@ class StartKeydb
$docker_compose['volumes'] = $volume_names;
}
if (! is_null($this->database->keydb_conf) || ! empty($this->database->keydb_conf)) {
if (! is_null($this->database->keydb_conf) && ! empty($this->database->keydb_conf)) {
$docker_compose['services'][$container_name]['volumes'] = array_merge(
$docker_compose['services'][$container_name]['volumes'] ?? [],
[