diff options
Diffstat (limited to 'system/database/DB_active_rec.php')
-rw-r--r-- | system/database/DB_active_rec.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php index a4ef2e4db..9a7ef5def 100644 --- a/system/database/DB_active_rec.php +++ b/system/database/DB_active_rec.php @@ -95,7 +95,14 @@ class CI_DB_active_record extends CI_DB_driver { {
if (is_string($select))
{
- $select = explode(',', $select);
+ if ($protect_identifiers !== FALSE)
+ {
+ $select = explode(',', $select);
+ }
+ else
+ {
+ $select = array($select);
+ }
}
foreach ($select as $val)
@@ -1749,6 +1756,6 @@ class CI_DB_active_record extends CI_DB_driver { }
}
- -/* End of file DB_active_rec.php */ +
+/* End of file DB_active_rec.php */
/* Location: ./system/database/DB_active_rec.php */
\ No newline at end of file |