Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/31/2012 09:54:19 PM (13 years ago)
Author:
boonebgorges
Message:

Ensure $forum_template global is cast properly, to avoid strict PHP errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-template.php

    r6023 r6219  
    10041004        global $bp, $current_user, $forum_template;
    10051005
     1006                if ( !isset( $forum_template ) ) {
     1007                        $forum_template = new stdClass;
     1008                }
     1009
    10061010        $this->pag_page        = isset( $_REQUEST['topic_page'] ) ? intval( $_REQUEST['topic_page'] ) : 1;
    10071011        $this->pag_num         = isset( $_REQUEST['num'] ) ? intval( $_REQUEST['num'] ) : $per_page;
Note: See TracChangeset for help on using the changeset viewer.