summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-13 00:08:34 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-13 00:08:34 +0100
commit9e94576e62e9edb5634cb3f4d278038069bb70a8 (patch)
tree575b1e92678acc5eb3d4b766f97684e1b7c9f4da /system
parentfe367a9c56f11cc779797e579b2b58c0d96ecf7b (diff)
Fix issue #1994
Diffstat (limited to 'system')
-rw-r--r--system/database/DB_utility.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php
index 488ebf3ac..a32fd4455 100644
--- a/system/database/DB_utility.php
+++ b/system/database/DB_utility.php
@@ -106,9 +106,9 @@ abstract class CI_DB_utility {
return $this->db->data_cache['db_names'];
}
- for ($i = 0, $c = count($query); $i < $c; $i++)
+ for ($i = 0, $query = $query->result_array(), $c = count($query); $i < $c; $i++)
{
- $this->db->data_cache['db_names'] = current($query[$i]);
+ $this->db->data_cache['db_names'][] = current($query[$i]);
}
return $this->db->data_cache['db_names'];