From 6a285fb39f5fce271dc23e13bafdb414502c9ecb Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 27 Aug 2006 19:54:10 +0000 Subject: --- system/drivers/DB_sqlite.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'system') 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(); + } } } -- cgit v1.2.3-24-g4f1b