summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2009-02-10 18:32:15 +0100
committerDerek Jones <derek.jones@ellislab.com>2009-02-10 18:32:15 +0100
commit4787413c06ec11bff1ba4b1c7a4fe667038595d0 (patch)
tree7a070a64e3c45ca0da442e74dca4a4394bc3b477 /system
parentafa282f0ad2a7155766a69b605e27347d6c5f6fb (diff)
fixed check for a method named 'field_names' which doesn't exist to 'list_fields' which is the correct method.
http://codeigniter.com/bug_tracker/bug/5787/
Diffstat (limited to 'system')
-rw-r--r--system/database/DB_utility.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php
index 195e4c46a..6619e80e7 100644
--- a/system/database/DB_utility.php
+++ b/system/database/DB_utility.php
@@ -175,7 +175,7 @@ class CI_DB_utility extends CI_DB_forge {
*/
function csv_from_result($query, $delim = ",", $newline = "\n", $enclosure = '"')
{
- if ( ! is_object($query) OR ! method_exists($query, 'field_names'))
+ if ( ! is_object($query) OR ! method_exists($query, 'list_fields'))
{
show_error('You must submit a valid result object');
}