mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 19:44:09 +02:00
Related to Issue #3741 - Incorrect encoding of a plugin language file could cause json encoding to fail.
This commit is contained in:
@@ -759,6 +759,13 @@ class e_plugin
|
||||
|
||||
$cacheSet = e107::serialize($arr,'json');
|
||||
|
||||
if(empty($cacheSet))
|
||||
{
|
||||
$error = json_last_error_msg();
|
||||
e107::getMessage()->addDebug("Plugin Cache JSON encoding is failing! (".__METHOD__.") Line: ".__LINE__);
|
||||
e107::getMessage()->addDebug("JSON Error: ".$error);
|
||||
}
|
||||
|
||||
e107::getCache()->set($cacheTag,$cacheSet,true,true,true);
|
||||
|
||||
$this->_data = $arr;
|
||||
|
Reference in New Issue
Block a user