summaryrefslogtreecommitdiffstats
path: root/system/drivers/DB_sqlite.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/drivers/DB_sqlite.php')
-rw-r--r--system/drivers/DB_sqlite.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/system/drivers/DB_sqlite.php b/system/drivers/DB_sqlite.php
index b2c31a8ba..71d2561dc 100644
--- a/system/drivers/DB_sqlite.php
+++ b/system/drivers/DB_sqlite.php
@@ -489,7 +489,14 @@ class CI_DB_sqlite_result extends CI_DB_result {
*/
function _fetch_object()
{
- return sqlite_fetch_object($this->result_id);
+ if (function_exists('sqlite_fetch_object'))
+ {
+ return sqlite_fetch_object($this->result_id);
+ }
+ else
+ {
+ return $this->_fetch_assoc();
+ }
}
}