diff options
author | alecpl <alec@alec.pl> | 2009-05-02 20:11:45 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-05-02 20:11:45 +0000 |
commit | 50d515a7d690f6017d97017f1370705e1a214c27 (patch) | |
tree | 7887ff08111e4561d0841c8cf64c227e002db888 /program/include/rcube_mdb2.php | |
parent | aeed58d5af0d56ec489d15cdbdffa3f95b353a90 (diff) |
- some hints to use sqlite db (#1485821)
Diffstat (limited to 'program/include/rcube_mdb2.php')
-rw-r--r-- | program/include/rcube_mdb2.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php index 1c491a874..713ff4255 100644 --- a/program/include/rcube_mdb2.php +++ b/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); } |