Skip to:
Content

bbPress.org

Ticket #1182: 1182.diff

File 1182.diff, 462 bytes (added by mr_pelle, 14 years ago)

basic patch by _ck_

  • functions.bb-core.php

     
    989989                $query_args = $bb_views[$view]['query'];
    990990        }
    991991
    992         return new BB_Query( 'topic', $query_args, "bb_view_$view" );
     992        return ( empty( $query_args ) ) ? false : new BB_Query( 'topic', $query_args, "bb_view_$view" );
    993993}
    994994
    995995function bb_get_view_query_args( $view ) {