diff options
author | Gwenael G <gwenael.gallon@mac.com> | 2015-01-23 18:19:32 +0100 |
---|---|---|
committer | Gwenael G <gwenael.gallon@mac.com> | 2015-01-23 18:19:32 +0100 |
commit | f1294cb402dc35db9c9b26441807d851d0449970 (patch) | |
tree | 73957d54813e4373a1e20ce8454faa25b810eede /system/database | |
parent | 2f58ea641fd0a571688b164c5ee7f5fa65051684 (diff) |
Corrected loop with the $c variable
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/drivers/sqlite3/sqlite3_result.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/sqlite3/sqlite3_result.php b/system/database/drivers/sqlite3/sqlite3_result.php index f5c24672e..387481b7f 100644 --- a/system/database/drivers/sqlite3/sqlite3_result.php +++ b/system/database/drivers/sqlite3/sqlite3_result.php @@ -98,7 +98,7 @@ class CI_DB_sqlite3_result extends CI_DB_result { ); $retval = array(); - for ($i = 0, $c = $this->num_fields(); $i < $this->num_fields(); $i++) + for ($i = 0, $c = $this->num_fields(); $i < $c; $i++) { $retval[$i] = new stdClass(); $retval[$i]->name = $this->result_id->columnName($i); |