From b1c845bf0591b1f5da593a55e462b07e5a4ee5de Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Mon, 28 Sep 2015 08:36:09 -0500
Subject: [PATCH] oops: Fix syntax error in attachment processing

---
 include/class.mailfetch.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.mailfetch.php b/include/class.mailfetch.php
index aac1d8cb5..03cebe2f2 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);
-- 
GitLab