Skip to content

Commit

Permalink
Re-fix multiple-column non-primary key indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed Nov 5, 2012
1 parent 137a742 commit d743cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/database/DB_forge.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function add_key($key = '', $primary = FALSE)
show_error('Key information is required for that operation.');
}

if (is_array($key))
if ($primary === TRUE && is_array($key))
{
foreach ($key as $one)
{
Expand Down

0 comments on commit d743cdb

Please sign in to comment.