From b6224a136c3fc2893e7f1bd3005959fab4008a47 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 23 Oct 2006 01:25:46 +0000 Subject: --- system/scaffolding/Scaffolding.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/scaffolding') diff --git a/system/scaffolding/Scaffolding.php b/system/scaffolding/Scaffolding.php index 60b608d6c..d42b56863 100644 --- a/system/scaffolding/Scaffolding.php +++ b/system/scaffolding/Scaffolding.php @@ -154,7 +154,7 @@ class Scaffolding { $query = $this->CI->db->get($this->current_table, $per_page, $offset); // Now let's get the field names - $fields = $this->CI->db->field_names($this->current_table); + $fields = $this->CI->db->list_fields($this->current_table); // We assume that the column in the first position is the primary field. $primary = current($fields); -- cgit v1.2.3-24-g4f1b