Closed (fixed)
Project:
Advanced Forum
Version:
7.x-2.x-dev
Component:
Views
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2013 at 17:13 UTC
Updated:
19 Mar 2013 at 23:32 UTC
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
Comment #1
troky commentedCommitted, thanks.
Comment #2
nsalyzyn commentedYour welcome