Made check for when db is missing a little tighter
parent
41ad832048
commit
28f6cf13bf
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue