[buddypress-trac] [BuddyPress] #2118: bp-groups-templatetags.php line 67 S error

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Mar 4 00:43:06 UTC 2010


#2118: bp-groups-templatetags.php line 67 S error
----------------------+-----------------------------------------------------
Reporter:  edelwater  |       Owner:     
    Type:  defect     |      Status:  new
Priority:  minor      |   Milestone:  1.3
Keywords:             |  
----------------------+-----------------------------------------------------
 {{{
 Undefined index: s in /var/www/vhosts/xxxx.com/httpdocs/wp-
 content/plugins/buddypress/bp-groups/bp-groups-templatetags.php on line
 67,
 }}}

 I see that $search_terms are passed to this function, so maybe this can
 use them both as replacement:


 {{{
                 if(isset($_REQUEST['s']) && ($_REQUEST['s'] !="")) {
                         $search_terms = $_REQUEST['s'];
                 }
                 $this->pag_links = paginate_links( array(
                         'base' => add_query_arg( array( 'grpage' => '%#%',
 'num' => $this->pag_num, 's' => $search_terms, 'sortby' => $this->sort_by,
 'order' => $this->order ) ),
                         'format' => '',
                         'total' => ceil($this->total_group_count /
 $this->pag_num),
                         'current' => $this->pag_page,
                         'prev_text' => '←',
                         'next_text' => '→',
                         'mid_size' => 1
                 ));
 }}}

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2118>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list