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.

CommentFileSizeAuthor
og.module_31.patch709 bytesadrianr

Comments

moshe weitzman’s picture

Status: Needs review » Needs work

looks 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.

Traverus’s picture

Status: Needs work » Closed (won't fix)

5.x no longer supported, please reopen with applicable version number if still relevant.