summaryrefslogtreecommitdiff
path: root/program/include/rcube_mdb2.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-08-06 09:25:45 +0000
committeralecpl <alec@alec.pl>2008-08-06 09:25:45 +0000
commitff73e02cced0abf176a5a7e8660860f6280da6fe (patch)
tree3470b8e0da1e975d6df3017a8cd3384b9b9f5137 /program/include/rcube_mdb2.php
parentf0726b94b3e7073240b0aca1af4ee52d3920ea27 (diff)
- fread() replaced by file_get_contents(), see comments in #1484880
Diffstat (limited to 'program/include/rcube_mdb2.php')
-rw-r--r--program/include/rcube_mdb2.php7
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);