accidentally used as a global in index.php
This commit is contained in:
parent
5c59c0d90c
commit
424388611a
@ -116,8 +116,8 @@ function main()
|
||||
|
||||
// XXX: find somewhere for this little block to live
|
||||
|
||||
if ($config['db']['mirror'] && $action_obj->isReadOnly()) {
|
||||
if (is_array($config['db']['mirror'])) {
|
||||
if (common_config('db', 'mirror') && $action_obj->isReadOnly()) {
|
||||
if (is_array(common_config('db', 'mirror'))) {
|
||||
// "load balancing", ha ha
|
||||
$k = array_rand($config['db']['mirror']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user