Workaround for when the db isn't there

8.0.x
Greg Dunlap 2011-12-08 10:29:07 +01:00
parent 82b84d3d6b
commit 41ad832048
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ class DrupalVerifiedStorageSQL extends DrupalConfigVerifiedStorage {
// read without actually having the database available. This is a
// workaround and there is probably a better solution to be had at
// some point.
if (!empty($GLOBALS['databases'])) {
if (!empty($GLOBALS['databases']) && !drupal_installation_attempted()) {
return db_query('SELECT data FROM {config} WHERE name = :name', array(':name' => $this->name))->fetchField();
}
}