diff options
author | J0WI <J0WI@users.noreply.github.com> | 2019-06-22 18:22:15 +0200 |
---|---|---|
committer | J0WI <J0WI@users.noreply.github.com> | 2019-06-22 18:22:15 +0200 |
commit | a87f914de35bb3bc7a54bf62fd2c3b8bff512bc2 (patch) | |
tree | a9b4152b09cf032641892298ddb5722c98b023e2 /.config | |
parent | df048873ab32ed3dc226bef48c0c22e3590c7386 (diff) |
Avoid empty table prefix
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to '.config')
-rw-r--r-- | .config/autoconfig.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/autoconfig.php b/.config/autoconfig.php index 85e02212..deeabe4e 100644 --- a/.config/autoconfig.php +++ b/.config/autoconfig.php @@ -23,7 +23,9 @@ if (getenv('SQLITE_DATABASE')) { } if ($autoconfig_enabled) { - $AUTOCONFIG["dbtableprefix"] = getenv('NEXTCLOUD_TABLE_PREFIX') ?: ""; + if (getenv('NEXTCLOUD_TABLE_PREFIX')) { + $AUTOCONFIG["dbtableprefix"] = getenv('NEXTCLOUD_TABLE_PREFIX'); + } $AUTOCONFIG["directory"] = getenv('NEXTCLOUD_DATA_DIR') ?: "/var/www/html/data"; } |