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

@ -149,7 +149,7 @@
* @brief 결과를 fetch
**/
function _fetch($result) {
if($this->errno!=0 || !$result) return;
if($this->isError() || !$result) return;
while($tmp = sqlite_fetch_array($result, SQLITE_ASSOC)) {
unset($obj);
@ -399,7 +399,7 @@
}
$result = $this->_query($query);
if($this->errno!=0) return;
if($this->isError()) return;
$data = $this->_fetch($result);
$buff = new Object();
@ -436,7 +436,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;