Index: fivestar.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/fivestar/fivestar.module,v retrieving revision 1.13.2.52 diff -u -r1.13.2.52 fivestar.module --- fivestar.module 11 Apr 2009 05:14:43 -0000 1.13.2.52 +++ fivestar.module 11 Apr 2009 05:21:21 -0000 @@ -727,13 +727,13 @@ * Internal function to handle vote casting, flood control, XSS, IP based * voting, etc... */ -function _fivestar_cast_vote($type, $cid, $value, $tag = NULL, $uid = NULL, $result = FALSE) { +function _fivestar_cast_vote($type, $cid, $value, $tag = NULL, $uid = NULL, $result = FALSE, $skip_validation = FALSE) { global $user; $tag = empty($tag) ? 'vote' : $tag; $uid = empty($uid) ? $user->uid : $uid; // Bail out if the user's trying to vote on an invalid object. - if (!fivestar_validate_target($type, $cid, $uid)) { + if (!$skip_validation && !fivestar_validate_target($type, $cid, $uid)) { return array(); } @@ -1415,7 +1415,7 @@ if ($votes === 0) { $output = ''. t('No votes yet') .''; } -dvm(func_get_args()); + $output = '