From f246349060ad2c0fc78e72f1e05d818dc3c76a1e Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 3 Jun 2015 11:57:51 +0000 Subject: [PATCH] Fix Fatal error: Cannot access self:: when no class scope is active. Happens only in PHP < 5.4 --- mail/inc/class.mail_integration.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/inc/class.mail_integration.inc.php b/mail/inc/class.mail_integration.inc.php index c843fda877..7ffa57acc5 100644 --- a/mail/inc/class.mail_integration.inc.php +++ b/mail/inc/class.mail_integration.inc.php @@ -246,7 +246,7 @@ class mail_integration { $data_message = preg_replace_callback( '/[-_+=~\.]{'.self::MAX_LINE_CHARS.',}/m', function($matches) { - return substr($matches[0],0,self::MAX_LINE_CHARS); + return substr($matches[0],0, mail_integration::MAX_LINE_CHARS); }, $mailcontent['message'] );