In the hook advanced_forum_views_post_render(), I got an error when one of my views didn't have a style_plugin when it reached hook_views_post_render(). I'm new enough to Drupal and views that I can't be sure this isn't an error somewhere else. However, it is an easy enough fix with no consequences, so it should just be done in my opinion:

@@ -523,7 +523,7 @@ module_load_include('inc', 'advanced_forum', 'includes/mark-read');
  * Post render a view and replace any advanced forum tokens.
  */
 function advanced_forum_views_post_render(&$view, &$output) {
-  if (!$view->style_plugin->uses_row_plugin()) {
+  if (empty($view->style_plugin) || !$view->style_plugin->uses_row_plugin()) {
     return;
   }
 

Comments

troky’s picture

Status: Active » Fixed

Committed, thanks.

nsalyzyn’s picture

Status: Fixed » Closed (fixed)

Your welcome