Skip to content

Commit

Permalink
//small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Augagneur committed Mar 19, 2014
1 parent 15c436b commit 2db9a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/db/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public static function getInstance($master = true)

// Add here your slave(s) server(s) in this file
if (file_exists(_PS_ROOT_DIR_.'/config/db_slave_server.inc.php'))
self::$_servers = array_merge(self::$_servers, include_once(_PS_ROOT_DIR_.'/config/db_slave_server.inc.php'));
self::$_servers = array_merge(self::$_servers, require(_PS_ROOT_DIR_.'/config/db_slave_server.inc.php'));

$total_servers = count(self::$_servers);
if ($master || $total_servers == 1)
Expand Down

0 comments on commit 2db9a79

Please sign in to comment.