summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-07-08 21:00:17 +0200
committerAndrey Andreev <narf@bofh.bg>2012-07-08 21:00:17 +0200
commit0db81b6c82c2f86a6e9da26ab5501ba65cb4c4e1 (patch)
treef071e97065c76c654b139740a9e781cbb2eae901 /system
parent3d9cec94b7cfd621111cb31808b23a1b6eaccf65 (diff)
Fix issue #1591
Diffstat (limited to 'system')
-rw-r--r--system/database/DB_result.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_result.php b/system/database/DB_result.php
index 94782b291..d44df6c02 100644
--- a/system/database/DB_result.php
+++ b/system/database/DB_result.php
@@ -144,7 +144,7 @@ class CI_DB_result {
{
$this->custom_result_object[$class_name][$i] = new $class_name();
- foreach ($this->$_data as $key => $value)
+ foreach ($this->{$_data}[$i] as $key => $value)
{
$this->custom_result_object[$class_name][$i]->$key = $value;
}