Needs review
Project:
User Points Voting API
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2010 at 17:28 UTC
Updated:
25 Aug 2010 at 17:31 UTC
Line 208 should be:
$number = db_result(db_query("SELECT COUNT(*) FROM {userpoints_txn} WHERE operation = '%s' AND uid = %d AND time_stamp > %d", t('vote'), $uid, time() - variable_get(userpoints_votingapi_period, 86400)));
instead
$number = db_result(db_query("SELECT COUNT(*) FROM {userpoints_txn} WHERE operation = 'vote' AND uid = %d AND time_stamp > %d", $uid, time() - variable_get(userpoints_votingapi_period, 86400)));
since module stores 'operation' => t('vote'),
Best regards
Comments
Comment #1
niteman commented