Databases array may be set, but have no keys

Created on 10 June 2024, 4 months ago
Updated 25 June 2024, 4 months ago

Problem/Motivation

When checking to see if the databases array exists, we check isset($databases) but we really need to be checking to see if the default key exists within the database as the default settings.php file includes a completely empty $databases array by default. So it is set, but doesn't have keys.

Steps to reproduce

Install drupal/mysql57, follow documented steps to require settings.inc and use drush site:install to attempt installation.

Proposed resolution

Add additional check for if databases default key is present.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States eporama

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024