diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-05-02 20:11:45 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-05-02 20:11:45 +0000 |
| commit | 77873a42821416748ad54816a9c6279a1f5fa5f8 (patch) | |
| tree | 9a5d3ca0894e68d0470d1f88506b1a918ed576ec /roundcubemail/program/include | |
| parent | f502254b34b6445d721caa7989379410c2eb9fc4 (diff) | |
- some hints to use sqlite db (#1485821)
git-svn-id: https://svn.roundcube.net/trunk@2449 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcube_mdb2.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_mdb2.php b/roundcubemail/program/include/rcube_mdb2.php index 1c491a874..713ff4255 100644 --- a/roundcubemail/program/include/rcube_mdb2.php +++ b/roundcubemail/program/include/rcube_mdb2.php @@ -585,7 +585,9 @@ class rcube_mdb2 $data = file_get_contents($file_name); if (strlen($data)) - sqlite_exec($dbh->connection, $data); + if (!sqlite_exec($dbh->connection, $data, $error) || MDB2::isError($dbh)) + raise_error(array('code' => 500, 'type' => 'db', + 'line' => __LINE__, 'file' => __FILE__, 'message' => $error), TRUE, FALSE); } |
