commit | f4a448e2be54dd0c4054acc0fde316a6a3c41a80 | [log] [tgz] |
---|---|---|
author | Alex Bilbie <alex@alexbilbie.com> | Mon Nov 05 05:52:06 2012 -0800 |
committer | Alex Bilbie <alex@alexbilbie.com> | Mon Nov 05 05:52:06 2012 -0800 |
tree | 0ca5859d0b505b461406478c6d925ba352949664 | |
parent | 7b18a3f268ba622cf938ac460d07bd58cb1eea06 [diff] | |
parent | dc6fba5492a215b40c254ed6f704c580427cdfea [diff] |
Merge pull request #1948 from GDmac/develop Fix #1946 dbforge add_key
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php index d2d99cc..f46237e 100644 --- a/system/database/DB_forge.php +++ b/system/database/DB_forge.php
@@ -182,7 +182,7 @@ */ public function add_key($key = '', $primary = FALSE) { - if (is_array($key)) + if ($primary && is_array($key)) { foreach ($key as $one) {