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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user