summaryrefslogtreecommitdiffstats
path: root/system/database/DB_forge.php
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-09-30 22:38:12 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-09-30 22:38:12 +0200
commitff73401cdef0136c15c6dab95d4d722123668e7a (patch)
treea9d04ceca35fb777cdd769a1b093821d195de230 /system/database/DB_forge.php
parent8f99224e6c6d3ac51cb0f356e2e0feb10fa93f31 (diff)
Did a little clean up. Nothing that affected functionality
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.');