Index: fivestar.module =================================================================== RCS file: /cvs/drupal/contributions/modules/fivestar/fivestar.module,v retrieving revision 1.13.2.49 diff -u -p -r1.13.2.49 fivestar.module --- fivestar.module 14 Mar 2009 01:05:32 -0000 1.13.2.49 +++ fivestar.module 19 Mar 2009 23:31:16 -0000 @@ -894,7 +894,12 @@ function fivestar_fivestar_widgets() { function fivestar_nodeapi(&$node, $op, $teaser, $page) { switch ($op) { case 'view': - if (!in_array($node->build_mode, array(NODE_BUILD_PREVIEW, NODE_BUILD_SEARCH_INDEX)) && !isset($node->modr8_form_teaser) && variable_get('fivestar_'. $node->type, 0)) { + // When ($teaser || $page || isset($node->view)) == true, we ensure that: + // $node->build_mode != NODE_BUILD_SEARCH_INDEX + // && $node->build_mode != NODE_BUILD_PREVIEW + // && the themed Search module results do not render the widget + // && full page node listings in Views do render the widget + if (($teaser || $page || isset($node->view)) && !isset($node->modr8_form_teaser) && variable_get('fivestar_'. $node->type, 0)) { if ($teaser) { $position = variable_get('fivestar_position_teaser_'. $node->type, 'above'); }