diff options
author | Urban Müller | 2016-06-21 15:22:37 +0200 |
---|---|---|
committer | Urban Müller | 2016-06-21 15:22:37 +0200 |
commit | 7731c755f49aef62f622f53662f9bda384b19d58 (patch) | |
tree | ac6e4487ca3b3b43c7ed55088ec4c18eb6a32a5e /it_dbi.class | |
parent | 5330813408668f70db9dcffc9ee6037a58da223e (diff) | |
download | itools-7731c755f49aef62f622f53662f9bda384b19d58.tar.gz itools-7731c755f49aef62f622f53662f9bda384b19d58.tar.bz2 itools-7731c755f49aef62f622f53662f9bda384b19d58.zip |
exclude nondefault databases
Diffstat (limited to 'it_dbi.class')
-rw-r--r-- | it_dbi.class | 4 |
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() |