summaryrefslogtreecommitdiff
path: root/dbi.class
diff options
context:
space:
mode:
Diffstat (limited to 'dbi.class')
-rw-r--r--dbi.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/dbi.class b/dbi.class
index 4be2802..853470b 100644
--- a/dbi.class
+++ b/dbi.class
@@ -107,7 +107,8 @@ function it_dbi($config, $query = null)
$table = mysql_tablename($tables, $i);
$classname = "$this->_classprefix$table";
- $result = mysql_list_fields($this->_db, $table, $this->_link);
+ if (!($result = @mysql_list_fields($this->_db, $table, $this->_link)))
+ $this->_fatal("it_dbi(): can't list fields \"$this->_db\": " . mysql_error($this->_link));
for ($fields=array(), $j=0; $j < mysql_num_fields($result); $j++)
{