Skip to content

Commit

Permalink
Check ENV variable first before doing a FS stat in settings.ddev.php (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
markhalliwell committed Jun 1, 2021
1 parent 10cc42e commit 40f9dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ddevapp/drupal.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func NewDrupalSettings(app *DdevApp) *DrupalSettings {
const settingsIncludeStanza = `
// Automatically generated include for settings managed by ddev.
$ddev_settings = dirname(__FILE__) . '/settings.ddev.php';
if (is_readable($ddev_settings) && getenv('IS_DDEV_PROJECT') == 'true') {
if (getenv('IS_DDEV_PROJECT') == 'true' && is_readable($ddev_settings)) {
require $ddev_settings;
}
`
Expand Down

0 comments on commit 40f9dbb

Please sign in to comment.