1
0
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:
Cameron
2016-03-25 11:24:07 -07:00
parent 7880dc5817
commit efc2e62953
3 changed files with 17 additions and 3 deletions

View File

@@ -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.';';