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