summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_dbi.class')
-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");
}