#2625 closed defect (bug) (fixed)
bp-groups-templatetags.php Division By Zero sometimes crashing the site
Reported by: | benfremer | Owned by: | |
---|---|---|---|
Milestone: | 1.2.6 | Priority: | normal |
Severity: | Version: | ||
Component: | Core | Keywords: | |
Cc: |
Description
Found a bug that was crashing Buddypress with a divide-by-zero error when not logged in in bp-groups-templatetags.php on line 69
Adding
if($this->pag_num == 0)$this->pag_num=1;
at about line 65 fixes the issue apparently.
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [3245]) Clean-up pagination in all components. Fixes #2625. Props BenFremer on your first trac ticket!