diff options
author | Pascal Kriete <pascal.kriete@ellislab.com> | 2009-08-24 18:42:52 +0200 |
---|---|---|
committer | Pascal Kriete <pascal.kriete@ellislab.com> | 2009-08-24 18:42:52 +0200 |
commit | 69b1fcc0b26c181b24aed8c347db94563328a83e (patch) | |
tree | 146bada87f56cca974fa6152385b61e2d0e7bba8 /system/database | |
parent | 5a8a455f19aa7fc57262cc740d45ebc531e34446 (diff) |
updating xml_from_result to check for list_fields instead of field_names
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/DB_utility.php | 2 |
1 files changed, 1 insertions, 1 deletions
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'); } |