summaryrefslogtreecommitdiffstats
path: root/system/database/DB_active_rec.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-11-03 18:17:02 +0100
committeradmin <devnull@localhost>2006-11-03 18:17:02 +0100
commitc50747cfe50a4c6b7e8bde81d0f56c3bd26bd29a (patch)
treed71bdc2f0badf0221a0db91db38f0f7ddf12bfb8 /system/database/DB_active_rec.php
parent2f0dc10e48e3f766ff558fd8856a45205881512f (diff)
Diffstat (limited to 'system/database/DB_active_rec.php')
-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;
}
// --------------------------------------------------------------------