diff --git a/system/database/DB_result.php b/system/database/DB_result.php
index b163bb5..4e8c4fc 100644
--- a/system/database/DB_result.php
+++ b/system/database/DB_result.php
@@ -63,6 +63,11 @@
return $this->result_object;
}
+ if ($this->num_rows == 0)
+ {
+ return array();
+ }
+
$this->_data_seek(0);
while ($row = $this->_fetch_object())
{
@@ -87,6 +92,11 @@
return $this->result_array;
}
+ if ($this->num_rows == 0)
+ {
+ return array();
+ }
+
$this->_data_seek(0);
while ($row = $this->_fetch_assoc())
{