Permalink
Browse files

Fix issue #1994

  • Loading branch information...
narfbg committed Nov 12, 2012
1 parent fe367a9 commit 9e94576e62e9edb5634cb3f4d278038069bb70a8
Showing with 2 additions and 2 deletions.
  1. +2 −2 system/database/DB_utility.php
@@ -106,9 +106,9 @@ public function list_databases()
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'];

0 comments on commit 9e94576

Please sign in to comment.