Skip to content
Snippets Groups Projects
Unverified Commit 7568e164 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst Committed by GitHub
Browse files

Merge pull request #824 from sgomez/fix-database-count-slave

Fix count slave checking
parents 93594a77 fc87fad3
No related branches found
No related tags found
No related merge requests found
...@@ -90,18 +90,16 @@ class Database ...@@ -90,18 +90,16 @@ class Database
// connect to any configured slaves // connect to any configured slaves
$slaves = $config->getArray('database.slaves', array()); $slaves = $config->getArray('database.slaves', array());
if (count($slaves >= 1)) { foreach ($slaves as $slave) {
foreach ($slaves as $slave) { array_push(
array_push( $this->dbSlaves,
$this->dbSlaves, $this->connect(
$this->connect( $slave['dsn'],
$slave['dsn'], $slave['username'],
$slave['username'], $slave['password'],
$slave['password'], $driverOptions
$driverOptions )
) );
);
}
} }
$this->tablePrefix = $config->getString('database.prefix', ''); $this->tablePrefix = $config->getString('database.prefix', '');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment