Closed (fixed)
Project:
Voting API
Version:
6.x-2.0-rc2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2008 at 00:31 UTC
Updated:
15 Jan 2009 at 00:50 UTC
I'm getting undefined index for "value_type" on line 432 of votingapi.module:
$cache[$result['tag']][$result['value_type']]['option-'. $result['value']] = $result['score'];
I believe it's because value_type is not included in the select on line 426:
$sql = "SELECT v.tag, v.value, COUNT(1) AS score ";
This omission is specific to value_type=option part of that function; the points/percentage code block correctly included value_type. Of course, you could just hardcode "option" on line 432 since that's the only possible value type for that section.
Comments
Comment #1
ChrisKennedy commentedI went ahead and committed a fix since this bug generated a lot of notices for ranked Advanced Polls in D6.
http://drupal.org/cvs?commit=161744