summaryrefslogtreecommitdiffstats
path: root/system/database/DB_forge.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/database/DB_forge.php')
-rw-r--r--system/database/DB_forge.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php
index cc88c32f9..d48165e2b 100644
--- a/system/database/DB_forge.php
+++ b/system/database/DB_forge.php
@@ -97,6 +97,16 @@ class CI_DB_forge {
*/
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.');