diff options
author | GDmac <grdalenoort@gmail.com> | 2012-10-31 16:53:15 +0100 |
---|---|---|
committer | GDmac <grdalenoort@gmail.com> | 2012-10-31 23:02:40 +0100 |
commit | dc6fba5492a215b40c254ed6f704c580427cdfea (patch) | |
tree | ad525e8792cd028ecabc2bba9dc72f03b8557cf0 /system/database | |
parent | 0bae250a59393bb8ee9ee68525ad0d295067febf (diff) |
Fix #1946 dbforge add_key
add_key not setting multiple-column keys when given array
Signed-off-by: GDmac <grdalenoort@gmail.com>
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/DB_forge.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php index 119d78d38..2be2790dd 100644 --- a/system/database/DB_forge.php +++ b/system/database/DB_forge.php @@ -132,7 +132,7 @@ abstract class CI_DB_forge { */ public function add_key($key = '', $primary = FALSE) { - if (is_array($key)) + if ($primary && is_array($key)) { foreach ($key as $one) { |