From 4b0be147c27c4c3e146320c7708e20f0b986f31b Mon Sep 17 00:00:00 2001 From: Soner Sayakci Date: Sat, 15 Jun 2024 13:00:14 +0200 Subject: [PATCH] fix: ADMINER_DEFAULT_SERVER usage, fixes #2 --- rootfs/var/www/html/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/var/www/html/index.php b/rootfs/var/www/html/index.php index 814d83e..9094895 100644 --- a/rootfs/var/www/html/index.php +++ b/rootfs/var/www/html/index.php @@ -11,7 +11,7 @@ function _callParent($function, $args) { $return = \Adminer::loginForm(); $form = ob_get_clean(); - echo str_replace('name="auth[server]" value="" title="hostname[:port]"', 'name="auth[server]" value="'.($_ENV['ADMINER_DEFAULT_SERVER'] ?: 'db').'" title="hostname[:port]"', $form); + echo str_replace('name="auth[server]" value="" title="hostname[:port]"', 'name="auth[server]" value="'.(getenv('ADMINER_DEFAULT_SERVER') ?: 'db').'" title="hostname[:port]"', $form); return $return; }