mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-18 19:30:55 +01:00
test on 'null', as json_last_error is a php5.3.x function
This commit is contained in:
parent
ba9a2f48c0
commit
8efb865d30
@ -1257,7 +1257,8 @@
|
|||||||
{
|
{
|
||||||
$test = json_encode($singleBodyPart['body']);
|
$test = json_encode($singleBodyPart['body']);
|
||||||
//error_log(__METHOD__.__LINE__.'#'.$test.'# ->'.strlen($singleBodyPart['body']).' Error:'.json_last_error());
|
//error_log(__METHOD__.__LINE__.'#'.$test.'# ->'.strlen($singleBodyPart['body']).' Error:'.json_last_error());
|
||||||
if (json_last_error() != JSON_ERROR_NONE && strlen($singleBodyPart['body'])>0)
|
//if (json_last_error() != JSON_ERROR_NONE && strlen($singleBodyPart['body'])>0)
|
||||||
|
if ($test=="null" && strlen($singleBodyPart['body'])>0)
|
||||||
{
|
{
|
||||||
// this should not be needed, unless something fails with charset detection/ wrong charset passed
|
// this should not be needed, unless something fails with charset detection/ wrong charset passed
|
||||||
error_log(__METHOD__.__LINE__.' Charset Reported:'.$singleBodyPart['charSet'].' Carset Detected:'.felamimail_bo::detect_encoding($singleBodyPart['body']));
|
error_log(__METHOD__.__LINE__.' Charset Reported:'.$singleBodyPart['charSet'].' Carset Detected:'.felamimail_bo::detect_encoding($singleBodyPart['body']));
|
||||||
|
Loading…
Reference in New Issue
Block a user