1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-25 15:31:41 +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

@@ -139,9 +139,9 @@ class forum_newforumposts_menu // plugin folder + menu name (without the .php)
}
if(isset($this->menuPref['caption']))
if(!empty($this->menuPref['caption']))
{
$caption = varset($this->menuPref['caption'][e_LANGUAGE], $this->menuPref['caption']);
$caption = !empty($this->menuPref['caption'][e_LANGUAGE]) ? $this->menuPref['caption'][e_LANGUAGE] : $this->menuPref['caption'];
}
else
{