From 3561712b6d9a7baa799a3ef8ec28f639aa3753e8 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 25 Aug 2015 10:37:10 +0000 Subject: [PATCH] fix/avoid fatal on getStructure --- emailadmin/inc/class.emailadmin_imapbase.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emailadmin/inc/class.emailadmin_imapbase.inc.php b/emailadmin/inc/class.emailadmin_imapbase.inc.php index 5de27caec4..48c245db00 100644 --- a/emailadmin/inc/class.emailadmin_imapbase.inc.php +++ b/emailadmin/inc/class.emailadmin_imapbase.inc.php @@ -5062,7 +5062,7 @@ class emailadmin_imapbase 'ids' => $uidsToFetch, ))->first(); - return $mail->getStructure(); + return is_object($mail)?$mail->getStructure():null; } catch (Exception $e) {