Appears to be a problem with using the $_GLOBALS variable to judge whether the og_ghp_ view contains any posts. In my case this variable has the last view used for blocks on the page, and this doesn't populate num_rows so the group homepage always declares there are no posts in this group. However, the $view object will have been updated after having been built to contain the total number of rows, so use I this instead.
Patch attached for review.
| Comment | File | Size | Author |
|---|---|---|---|
| og.module_31.patch | 709 bytes | adrianr |
Comments
Comment #1
moshe weitzman commentedlooks reasonable, except total_rows is not set if admin has customized the Views and disabled pager. Also test to make sure we aren't introduving NOTICE errors. We'll need to get rid of all these for D6.
Comment #2
Traverus commented5.x no longer supported, please reopen with applicable version number if still relevant.