diff options
Diffstat (limited to 'program/include/rcube_mdb2.php')
-rw-r--r-- | program/include/rcube_mdb2.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php index 4c19e1eb7..9f2f30c10 100644 --- a/program/include/rcube_mdb2.php +++ b/program/include/rcube_mdb2.php @@ -566,12 +566,7 @@ class rcube_mdb2 if (empty($file_name) || !is_string($file_name)) return; - $data = ''; - if ($fd = fopen($file_name, 'r')) - { - $data = fread($fd, filesize($file_name)); - fclose($fd); - } + $data = file_get_contents($file_name); if (strlen($data)) sqlite_exec($dbh->connection, $data); |