Opened 15 years ago
Closed 15 years ago
#2118 closed defect (bug) (fixed)
bp-groups-templatetags.php line 67 S error
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 1.2.4 | Priority: | minor |
Severity: | Version: | ||
Component: | Core | Keywords: | |
Cc: | deleau@… |
Description
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 ));
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [2937]) Fixes #2118 props edelwater. bp_has_groups handles $search_terms properly.