diff options
author | admin <devnull@localhost> | 2006-10-20 07:11:33 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-20 07:11:33 +0200 |
commit | 31eeb0587cd5fcef8209ca5083f28a39435c135d (patch) | |
tree | a6a2ed0c146f7fcbddd0e21d998bb8fa5e51f2c2 | |
parent | 6dfa713d204056d42027b54e851785646d00355a (diff) |
-rw-r--r-- | system/database/DB_result.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/system/database/DB_result.php b/system/database/DB_result.php index b163bb5ea..4e8c4fc76 100644 --- a/system/database/DB_result.php +++ b/system/database/DB_result.php @@ -63,6 +63,11 @@ class CI_DB_result { return $this->result_object; } + if ($this->num_rows == 0) + { + return array(); + } + $this->_data_seek(0); while ($row = $this->_fetch_object()) { @@ -87,6 +92,11 @@ class CI_DB_result { return $this->result_array; } + if ($this->num_rows == 0) + { + return array(); + } + $this->_data_seek(0); while ($row = $this->_fetch_assoc()) { |