From bbf017a819a14cf37e4a64a361fb7c76c7d4fb34 Mon Sep 17 00:00:00 2001 From: harryxu Date: Wed, 18 Jan 2012 18:43:18 +0800 Subject: [PATCH] Fixed multiple column non-primary keys in DB_forge. --- system/database/DB_forge.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php index 6bc40411b51..5db05c71504 100644 --- a/system/database/DB_forge.php +++ b/system/database/DB_forge.php @@ -97,16 +97,6 @@ function drop_database($db_name) */ function add_key($key = '', $primary = FALSE) { - if (is_array($key)) - { - foreach ($key as $one) - { - $this->add_key($one, $primary); - } - - return; - } - if ($key == '') { show_error('Key information is required for that operation.'); @@ -379,4 +369,4 @@ function _reset() } /* End of file DB_forge.php */ -/* Location: ./system/database/DB_forge.php */ \ No newline at end of file +/* Location: ./system/database/DB_forge.php */