mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 09:04:38 +02:00
NewForumPosts could fail under some circumstances. Extra checks added for e107::unserialize();
This commit is contained in:
@@ -450,6 +450,14 @@ class e_array {
|
||||
$ArrayData = str_replace('=>','=>',$ArrayData); //FIX for PDO encoding of strings. .
|
||||
|
||||
|
||||
if(trim($ArrayData) == 'Array') // Something went wrong with storage.
|
||||
{
|
||||
$debug = debug_backtrace(false);
|
||||
e107::getMessage()->addDebug("Bad Array Storage found: ". print_a($debug,true));
|
||||
|
||||
return array();
|
||||
}
|
||||
|
||||
$data = "";
|
||||
$ArrayData = '$data = '.$ArrayData.';';
|
||||
|
||||
|
Reference in New Issue
Block a user