you are right N9ne it'll create an extra query on every page if you are loggedin as admin and the board is closed:
fix:
in global.php find
PHP Code:
$templatesused.='gobutton,timezone,username_loggedout,username_loggedin,phpinclude,headinclude,header,footer,forumjumpbit,forumjump,nav_linkoff,nav_linkon,navbar,nav_joiner';
$templatesused.=',pagenav,pagenav_curpage,pagenav_firstlink,pagenav_lastlink,pagenav_nextlink,pagenav_pagelink,pagenav_prevlink';
below add:
PHP Code:
if (!$bbactive) $templatesused.=',bbinactive';