From 7ac0e33fbb70db6a68b313eba3e129465d52d4d7 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 3 Apr 2018 10:33:40 +0200 Subject: [PATCH] Make sure mail_bo object is there before using it, fixes error "can not call undefined function reopen()" --- api/src/Mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index 4a9fcadcce..c47a882cd0 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -6776,7 +6776,7 @@ class Mail // If it is an inline image url, we need to fetch the actuall attachment // content and later on to be able to store its content as temp file - if (strpos($myUrl, '/index.php?menuaction=mail.mail_ui.displayImage') !== false) + if (strpos($myUrl, '/index.php?menuaction=mail.mail_ui.displayImage') !== false && $mail_bo) { $URI_params = array(); // Strips the url and store it into a temp for further procss