From 4787413c06ec11bff1ba4b1c7a4fe667038595d0 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Tue, 10 Feb 2009 17:32:15 +0000 Subject: 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/ --- system/database/DB_utility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') 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'); } -- cgit v1.2.3-24-g4f1b