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

niteman’s picture

Status: Active » Needs review