summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/database/DB_active_rec.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index b41b929d7..90f58ae0e 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -486,8 +486,9 @@ class CI_DB_active_record extends CI_DB_driver {
$sql = $this->_compile_select();
+ $result = $this->query($sql);
$this->_reset_select();
- return $this->query($sql);
+ return $result;
}
// --------------------------------------------------------------------
@@ -522,8 +523,9 @@ class CI_DB_active_record extends CI_DB_driver {
$sql = $this->_compile_select();
+ $result = $this->query($sql);
$this->_reset_select();
- return $this->query($sql);
+ return $result;
}
// --------------------------------------------------------------------