Made check for when db is missing a little tighter

8.0.x
Greg Dunlap 2011-12-08 11:30:37 +01:00
parent 41ad832048
commit 28f6cf13bf
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']) && !drupal_installation_attempted()) {
if (!empty($GLOBALS['databases']) && db_table_exists('config')) {
return db_query('SELECT data FROM {config} WHERE name = :name', array(':name' => $this->name))->fetchField();
}
}