summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2016-06-21 15:22:37 +0200
committerUrban Müller2016-06-21 15:22:37 +0200
commit7731c755f49aef62f622f53662f9bda384b19d58 (patch)
treeac6e4487ca3b3b43c7ed55088ec4c18eb6a32a5e
parent5330813408668f70db9dcffc9ee6037a58da223e (diff)
downloaditools-7731c755f49aef62f622f53662f9bda384b19d58.tar.gz
itools-7731c755f49aef62f622f53662f9bda384b19d58.tar.bz2
itools-7731c755f49aef62f622f53662f9bda384b19d58.zip
exclude nondefault databases
-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()