summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
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 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');
}