diff --git a/include/class.mailfetch.php b/include/class.mailfetch.php
index aac1d8cb5416663dc2f553f7e3763bb891604f94..03cebe2f23e6c1dcc0ecf50df1d66004aaa07dc9 100644
--- a/include/class.mailfetch.php
+++ b/include/class.mailfetch.php
@@ -205,7 +205,7 @@ class MailFetcher {
                         throw new Exception();
                     stream_filter_remove($s_filter); 
                     fclose($f);
-                    if (!($f = fopen($temp, 'r')) || !($text = fread($f, filesize($temp)))
+                    if (!($f = fopen($temp, 'r')) || !($text = fread($f, filesize($temp))))
                         throw new Exception();
                     fclose($f);
                     unlink($temp);