Skip to content

Commit

Permalink
fix: ADMINER_DEFAULT_SERVER usage, fixes shyim#2
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Jun 15, 2024
1 parent ba85ebd commit 4b0be14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/var/www/html/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4b0be14

Please sign in to comment.