diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-11-01 21:52:01 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-11-01 21:52:01 +0000 |
| commit | 395de94f6579600292a7cf55d84e5f1e3a8bbf09 (patch) | |
| tree | 84e11b026a2c65dcc7632796b4a5e6f355e8fe8c /roundcubemail/program/include/rcube_db.inc | |
| parent | 9568dc736aaa758504ab8ae2a2e9e8803b4cc30a (diff) | |
Fixed session expiration issue with SQLite
git-svn-id: https://svn.roundcube.net/trunk@70 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_db.inc')
| -rwxr-xr-x | roundcubemail/program/include/rcube_db.inc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/roundcubemail/program/include/rcube_db.inc b/roundcubemail/program/include/rcube_db.inc index a987d2e84..684ed49b9 100755 --- a/roundcubemail/program/include/rcube_db.inc +++ b/roundcubemail/program/include/rcube_db.inc @@ -139,7 +139,7 @@ class rcube_db $result = $this->db_handle->limitQuery($query,$offset,$numrows,$params); } else - $result = $this->db_handle->query($query,$params); + $result = $this->db_handle->query($query, $params); if (DB::isError($result)) { @@ -147,7 +147,7 @@ class rcube_db 'type' => 'db', 'line' => __LINE__, 'file' => __FILE__, - 'message' => $result->getMessage()), TRUE, FALSE); + 'message' => $result->getMessage().'; QUERY: '.$query), TRUE, FALSE); return false; } @@ -292,11 +292,9 @@ class rcube_db { if (!is_string($query)) return ($query); - - $search = array('/NOW\(\)/', - '/`/'); - $replace = array("datetime('now')", - '"'); + + $search = array('/NOW\(\)/i', '/`/'); + $replace = array("datetime('now')", '"'); $query = preg_replace($search, $replace, $query); return ($query); |
