diff options
author | admin <devnull@localhost> | 2006-08-27 21:54:10 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-08-27 21:54:10 +0200 |
commit | 6a285fb39f5fce271dc23e13bafdb414502c9ecb (patch) | |
tree | 9f99894cfdfaa81a41dbcbfd865e9d946999ea6a /system/drivers/DB_sqlite.php | |
parent | 97cdfb15951439bd4b04fabaf0dd590d9480c39e (diff) |
Diffstat (limited to 'system/drivers/DB_sqlite.php')
-rw-r--r-- | system/drivers/DB_sqlite.php | 9 |
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(); + } } } |