Quote:
Originally Posted by bosken
Anyone can vote on a "bike" how many times they want, and even vote on their own
Can this be disabled somehow?
|
It's a bug that I have fixed in the next version
Open includes/garage_func_var.php
Find
Code:
$rating_query = $vbulletin->db->query_read("SELECT id FROM " . TABLE_PREFIX . "garage_ratings WHERE vehicle_id = '$id' && user_id = '$bbuserinfo[userid]'");
replace with
Code:
$rating_query = $vbulletin->db->query_read("SELECT id FROM " . TABLE_PREFIX . "garage_ratings WHERE vehicle_id = '" . $id . "' && user_id = " . $vbulletin->userinfo['userid'] . "");
That should fix it.