git-svn-id: http://xe-core.googlecode.com/svn/trunk@970 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-05 04:22:21 +00:00
parent 49582a9e09
commit 736d569538
6 changed files with 103 additions and 67 deletions

View file

@ -153,7 +153,7 @@
* @brief 결과를 fetch
**/
function _fetch($result) {
if($this->errno!=0 || !$result) return;
if($this->isError() || !$result) return;
while($tmp = mysql_fetch_object($result)) {
$output[] = $tmp;
}
@ -384,7 +384,7 @@
}
$result = $this->_query($query);
if($this->errno!=0) return;
if($this->isError()) return;
$data = $this->_fetch($result);
$buff = new Object();
@ -421,7 +421,7 @@
$index = implode(',',$index_list);
$query = sprintf('select %s from %s %s order by %s limit %d, %d', $columns, $table, $condition, $index, $start_count, $navigation->list_count);
$result = $this->_query($query);
if($this->errno!=0) {
if($this->isError()) {
$buff = new Object();
$buff->total_count = 0;
$buff->total_page = 0;