commit | ff73401cdef0136c15c6dab95d4d722123668e7a | [log] [tgz] |
---|---|---|
author | Rick Ellis <rick.ellis@ellislab.com> | Tue Sep 30 20:38:12 2008 +0000 |
committer | Rick Ellis <rick.ellis@ellislab.com> | Tue Sep 30 20:38:12 2008 +0000 |
tree | a9d04ceca35fb777cdd769a1b093821d195de230 | |
parent | 8f99224e6c6d3ac51cb0f356e2e0feb10fa93f31 [diff] [blame] |
Did a little clean up. Nothing that affected functionality
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php index cc88c32..d48165e 100644 --- a/system/database/DB_forge.php +++ b/system/database/DB_forge.php
@@ -97,6 +97,16 @@ */ 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.');