mirror of
https://codeberg.org/vlw/scaffold.git
synced 2026-02-26 03:21:57 +01:00
fix: use array_key_exists() on $_ENV to determine if MariaDB key is set (#26)
Reviewed-on: https://codeberg.org/vlw/scaffold/pulls/26
This commit is contained in:
parent
8a04cab4b5
commit
c858cd111a
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@
|
|||
?string $database = ""
|
||||
) {
|
||||
// Create key if it does not exist
|
||||
if (!$_ENV["mariadb"]) {
|
||||
if (!array_key_exists("mariadb", $_ENV)) {
|
||||
$_ENV["mariadb"] = [];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue