From 02ea8d6332dd832fc96663da7eae27c849af53fb Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 29 Jul 2008 13:27:05 +0000 Subject: Fix switch to update_server --- it_dbi.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'it_dbi.class') diff --git a/it_dbi.class b/it_dbi.class index 80f0ce8..153fdd6 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -387,8 +387,8 @@ function query($query, $p = array()) if ($p['server_update'] && !preg_match('/^(EXPLAIN|SELECT|SHOW) /i', $query)) { debug("switching to update server \"{$p['server_update']}\"", 5); - $this->_p['server'] = $p['server_update']; - unset($this->_p['server_update'], $this->_link); + $this->_p['server'] = $p['server'] = $p['server_update']; + unset($this->_p['server_update'], $p['server_update'], $this->_link); } $this->_connect($p); # must be called after update server switching code -- cgit v1.2.3