From 69b1fcc0b26c181b24aed8c347db94563328a83e Mon Sep 17 00:00:00 2001 From: Pascal Kriete Date: Mon, 24 Aug 2009 16:42:52 +0000 Subject: updating xml_from_result to check for list_fields instead of field_names --- system/database/DB_utility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/database') diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php index 4ba69adbd..33c68faea 100644 --- a/system/database/DB_utility.php +++ b/system/database/DB_utility.php @@ -217,7 +217,7 @@ class CI_DB_utility extends CI_DB_forge { */ function xml_from_result($query, $params = array()) { - 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