mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 20:51:23 +01:00
Fix Fatal error: Cannot access self:: when no class scope is active. Happens only in PHP < 5.4
This commit is contained in:
parent
2ecc44147e
commit
f246349060
@ -246,7 +246,7 @@ class mail_integration {
|
|||||||
$data_message = preg_replace_callback(
|
$data_message = preg_replace_callback(
|
||||||
'/[-_+=~\.]{'.self::MAX_LINE_CHARS.',}/m',
|
'/[-_+=~\.]{'.self::MAX_LINE_CHARS.',}/m',
|
||||||
function($matches) {
|
function($matches) {
|
||||||
return substr($matches[0],0,self::MAX_LINE_CHARS);
|
return substr($matches[0],0, mail_integration::MAX_LINE_CHARS);
|
||||||
},
|
},
|
||||||
$mailcontent['message']
|
$mailcontent['message']
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user