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

ChrisKennedy’s picture

Status: Active » Fixed

I 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.