Skip to:
Content
Pages
Categories
Search
Top
Bottom

When there is no forum to display, warning is generated.

  • When there is no forum to display, function get_forums in functions.bb-forums.php generates a warning. (ver 1.0-rc-1)

    Warning: Invalid argument supplied for foreach() in /[installed_path]/bb-includes/functions.bb-forums.php on line 84

    Usually there will be one forum at least, but some plugins such as Hidden Forums plugin could change a forum list to display and make the list emply.

    In that situation, foreach in function get_forums (line 84) will be supplied by NULL.

    To fix this, change line 83 in functions.bb-forums.php like below.

    < $_forums = bb_append_meta( $_forums, ‘forum’ );

    > $_forums = (array) bb_append_meta( $_forums, ‘forum’ );

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar