summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-05 23:00:01 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-05 23:00:01 +0100
commitd743cdbe448258cc7f02abf15e8dc797dc6403eb (patch)
tree76a7de06b6f8b07ab36ebaffe78235f22dffb1a2 /system/database
parent137a742409b2a643e70f422efa17ca535b47d218 (diff)
Re-fix multiple-column non-primary key indexes
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_forge.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php
index c284d7d82..2b9fb169a 100644
--- a/system/database/DB_forge.php
+++ b/system/database/DB_forge.php
@@ -239,7 +239,7 @@ abstract class CI_DB_forge {
show_error('Key information is required for that operation.');
}
- if (is_array($key))
+ if ($primary === TRUE && is_array($key))
{
foreach ($key as $one)
{