From 59523592c58abc303a6eae1904c80fa6a428c3d3 Mon Sep 17 00:00:00 2001 From: Rick Ellis Date: Fri, 17 Oct 2008 04:07:40 +0000 Subject: Fixed a number of bug reports related to table/db names not being escaped or prefixed correctly. --- system/database/DB_forge.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'system/database/DB_forge.php') diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php index 64f95d635..20f0a3087 100644 --- a/system/database/DB_forge.php +++ b/system/database/DB_forge.php @@ -253,7 +253,7 @@ class CI_DB_forge { { if ($table == '') { - show_error('A table name is required for that operation.'); + show_error('A table name is required for that operation.'); } // add field info into field array, but we can only do one at a time @@ -286,12 +286,12 @@ class CI_DB_forge { if ($table == '') { - show_error('A table name is required for that operation.'); + show_error('A table name is required for that operation.'); } if ($column_name == '') { - show_error('A column name is required for that operation.'); + show_error('A column name is required for that operation.'); } $sql = $this->_alter_table('DROP', $this->db->dbprefix.$table, $column_name); @@ -312,10 +312,9 @@ class CI_DB_forge { */ function modify_column($table = '', $field = array()) { - if ($table == '') { - show_error('A table name is required for that operation.'); + show_error('A table name is required for that operation.'); } // add field info into field array, but we can only do one at a time -- cgit v1.2.3-24-g4f1b