1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 09:39:55 +02:00

Fix forum replies/topic count styling on sub forums.

This commit is contained in:
Cameron
2021-10-10 09:15:16 -07:00
parent fd116c177a
commit da219c31ae
3 changed files with 12 additions and 7 deletions

View File

@@ -312,7 +312,7 @@ function init()
}
//XXX What is this?
if(substr($forumInfo['forum_name'], 0, 1) == '*')
if(!empty($forumInfo['forum_name']) && (substr($forumInfo['forum_name'], 0, 1) == '*'))
{
$forum_info['forum_name'] = substr($forum_info['forum_name'], 1);
$container_only = true;
@@ -322,7 +322,7 @@ function init()
$container_only = false;
}
if(substr($forum_info['sub_parent'], 0, 1) == '*')
if(!empty($forum_info['sub_parent']) && (substr($forum_info['sub_parent'], 0, 1) == '*'))
{
$forum_info['sub_parent'] = substr($forum_info['sub_parent'], 1);
}