| @@ 367-372 (lines=6) @@ | ||
| 364 | ||
| 365 | $sql = $sql_select . " " . $sql_from . " " . $sql_where; |
|
| 366 | */ |
|
| 367 | if (($result = $this->db->query($sql)) == false) { |
|
| 368 | //xoops_error($this->db->error()); |
|
| 369 | $ret = 0; |
|
| 370 | } else { |
|
| 371 | list($ret) = $this->db->fetchRow($result); |
|
| 372 | } |
|
| 373 | ||
| 374 | return $ret; |
|
| 375 | } |
|
| @@ 468-473 (lines=6) @@ | ||
| 465 | } |
|
| 466 | ||
| 467 | $sql = $sql_select . ' ' . $sql_from . ' ' . $sql_where; |
|
| 468 | if (($result = $this->db->query($sql)) == false) { |
|
| 469 | //xoops_error($this->db->error()); |
|
| 470 | $ret = 0; |
|
| 471 | } else { |
|
| 472 | list($ret) = $this->db->fetchRow($result); |
|
| 473 | } |
|
| 474 | } |
|
| 475 | ||
| 476 | return $ret; |
|