summaryrefslogtreecommitdiffstats
path: root/system/scaffolding
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-23 03:25:46 +0200
committeradmin <devnull@localhost>2006-10-23 03:25:46 +0200
commitb6224a136c3fc2893e7f1bd3005959fab4008a47 (patch)
tree6a241ff5d178e7f23f1cbbaa1bde1259f484d202 /system/scaffolding
parentca3dafb5ad0f04147128be596c872c156e176594 (diff)
Diffstat (limited to 'system/scaffolding')
-rw-r--r--system/scaffolding/Scaffolding.php2
1 files changed, 1 insertions, 1 deletions
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);