summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-05 22:46:44 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-05 22:46:44 +0100
commit137a742409b2a643e70f422efa17ca535b47d218 (patch)
tree67312e03d4f6505baf18b4105d59330a0491e1f8 /system/database
parenta287a34c215903d3452023d74149eb5880125715 (diff)
Fix Forge add_column() and modify_column()
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_forge.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php
index d8ecefe77..c284d7d82 100644
--- a/system/database/DB_forge.php
+++ b/system/database/DB_forge.php
@@ -564,7 +564,7 @@ abstract class CI_DB_forge {
for ($i = 0, $c = count($sqls); $i < $c; $i++)
{
- if ($this->db->query($sql) === FALSE)
+ if ($this->db->query($sqls[$i]) === FALSE)
{
return FALSE;
}
@@ -644,7 +644,7 @@ abstract class CI_DB_forge {
for ($i = 0, $c = count($sqls); $i < $c; $i++)
{
- if ($this->db->query($sql) === FALSE)
+ if ($this->db->query($sqls[$i]) === FALSE)
{
return FALSE;
}