diff options
-rw-r--r-- | dbi.class | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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++) { |