From 2a32284616f09e0dbcb1cd37076ba8e2c48d78e0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 29 Nov 2013 05:24:39 +0000 Subject: [PATCH] fixed PHP Fatal error: Using $this when not in object context --- mail/inc/class.mail_bo.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mail/inc/class.mail_bo.inc.php b/mail/inc/class.mail_bo.inc.php index 0d7655b792..1936632c21 100644 --- a/mail/inc/class.mail_bo.inc.php +++ b/mail/inc/class.mail_bo.inc.php @@ -334,8 +334,8 @@ class mail_bo $mail = mail_bo::getInstance(false, $_profile_id,false); //_debug_array( $_profile_id); //$mail->mailPreferences = $mail->bopreferences->getPreferences($_profile_id,1); - $this->icServer = emailadmin_account::read($_profile_id)->imapServer(); - $this->ogServer = emailadmin_account::read($_profile_id)->smtpServer(); + $mail->icServer = emailadmin_account::read($_profile_id)->imapServer(); + $mail->ogServer = emailadmin_account::read($_profile_id)->smtpServer(); return $mail; } @@ -4498,7 +4498,7 @@ class mail_bo if ($part->getDisposition()=='attachment') { $headerObject['ATTACHMENTS'][$mime_id]=$part->getAllDispositionParameters(); - + $structure_bytes = $part->getBytes(); $structure_mime=$mime_type; $structure_partID=$mime_id;