There seems to be a logic error in the theme_og_picture_grid() function. In that function, there is a check to see if $content is empty. However, there is absolutely no case in which $content will be empty because that variable is set directly above the conditional (and at the beginning of the function). It seems to me that the conditional should check $total, not $content, to determine if the function should return a value.

I also noticed from the comment above the function that this functionality was derived from views_bonus.module, and I have also reported the issue there.
http://drupal.org/node/346229

Comments

moshe weitzman’s picture

Status: Active » Fixed

Committed. Thanks ... We do this all in Views in D6 so no change needed there.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.