summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2007-10-05 11:19:35 +0000
committerUrban Müller2007-10-05 11:19:35 +0000
commit1ee357787302611b27f71628a2e2be169c7f87f9 (patch)
tree339609e9d8ba38e8157d029bd0f7942d36e8aecf
parent06dd638946d9f0471bb9e267804eb3d0ee30365e (diff)
downloaditools-1ee357787302611b27f71628a2e2be169c7f87f9.tar.gz
itools-1ee357787302611b27f71628a2e2be169c7f87f9.tar.bz2
itools-1ee357787302611b27f71628a2e2be169c7f87f9.zip
dont create extra errs
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 643a5bc..c8f2138 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -395,7 +395,7 @@ function query($query)
return false;
$error = mysql_errno($this->_link).' ('.mysql_error($this->_link).')';
- $res = mysql_fetch_row(mysql_query('select database()', $this->_link));
+ $res = @mysql_fetch_row(@mysql_query('select database()', $this->_link)); # dont create extra errs
$this->_fatal("query(\"$query\") on {$res[0]} failed: $error");
}