summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_dbi.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_dbi.class b/it_dbi.class
index f6614d8..d5607ca 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -462,7 +462,7 @@ function query($query, $p = array())
$this->_p['server'] = $p['server'] = $p['server_update'];
unset($this->_p['server_update'], $p['server_update'], $this->_link);
}
- else if ($p['server'] == "localhost" && ($t = @file($GLOBALS['ULTRAHOME'] . "/doc/machines.txt")) && preg_grep("/^" . gethostname() . "/", array_slice($t, 2)))
+ else if ($p['server'] == "localhost" && $p['db'] == $GLOBALS['ULTRADB'] && ($t = @file($GLOBALS['ULTRAHOME'] . "/doc/machines.txt")) && preg_grep("/^" . gethostname() . "/", array_slice($t, 2)))
it::error("local write access on a replication slave machine?");
}
@@ -688,7 +688,7 @@ function insert($tags = array(), $command = "INSERT")
/**
- * Replace a record in a table
+ * Replqace a record in a table
* @param $tags Additional key => value pairs
* Does not destroy internal state of last select() call
* @see insert()