program/include/rcube_mdb2.php
@@ -228,7 +228,7 @@ function _query($query, $offset, $numrows, $params) { // Read or write ? if (strtolower(trim(substr($query,0,6)))=='select') if (strtolower(substr(trim($query),0,6))=='select') $mode='r'; else $mode='w'; @@ -585,7 +585,9 @@ $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); }