Line adding 'function' criteria is missing last 'is_string' parameter, as 'function' is a string criteria ('average', 'sum', count'):

_votingapi_query_builder('function', $criteria['function'], $query, $args);

it should be:

_votingapi_query_builder('function', $criteria['function'], $query, $args, TRUE);

Comments

eaton’s picture

Status: Active » Fixed

Thanks. This fix has been checked in and is part of the dev branch.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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