--- C:/DOKUME~1/ADMINI~1/LOKALE~1/Temp/class.t3lib_db.-revBASE.svn003.tmp.php Do Aug 27 17:37:32 2009 +++ C:/xampp/htdocs/t3trunk/t3lib/class.t3lib_db.php Do Aug 27 17:37:21 2009 @@ -819,8 +819,11 @@ * @return integer Number of resulting rows */ function sql_num_rows($res) { - $this->debug_check_recordset($res); - return mysql_num_rows($res); + if($this->debug_check_recordset($res)) { + return mysql_num_rows($res); + } else { + return false; + } } /** @@ -832,8 +835,11 @@ * @return array Associative array of result row. */ function sql_fetch_assoc($res) { - $this->debug_check_recordset($res); - return mysql_fetch_assoc($res); + if($this->debug_check_recordset($res)) { + return mysql_fetch_assoc($res); + } else { + return false; + } } /** @@ -846,8 +852,11 @@ * @return array Array with result rows. */ function sql_fetch_row($res) { - $this->debug_check_recordset($res); - return mysql_fetch_row($res); + if($this->debug_check_recordset($res)) { + return mysql_fetch_row($res); + } else { + return false; + } } /** @@ -859,8 +868,11 @@ * @return boolean Returns TRUE on success or FALSE on failure. */ function sql_free_result($res) { - $this->debug_check_recordset($res); - return mysql_free_result($res); + if($this->debug_check_recordset($res)) { + return mysql_free_result($res); + } else { + return false; + } } /** @@ -895,8 +907,11 @@ * @return boolean Returns TRUE on success or FALSE on failure. */ function sql_data_seek($res,$seek) { - $this->debug_check_recordset($res); - return mysql_data_seek($res,$seek); + if($this->debug_check_recordset($res)) { + return mysql_data_seek($res,$seek); + } else { + return false; + } } /** @@ -909,8 +924,11 @@ * @return string Returns the name of the specified field index */ function sql_field_type($res,$pointer) { - $this->debug_check_recordset($res); - return mysql_field_type($res,$pointer); + if($this->debug_check_recordset($res)) { + return mysql_field_type($res,$pointer); + } else { + return false; + } } /**