This patch removes a couple of apostrophes while doing an implode in the $filter_string in the _votingapi_get_raw_votes() function.

$filter_string .= " AND v.tag IN ('". implode("','", $tag_list) ."')";
IS REPLACED WITH
$filter_string .= " AND v.tag IN ('" . implode(',',$tag_list) . "')";

Replaces one other instance.

Also, the function currently only supports $tag_list being an array, and so some extra code is added in case a single $tag string is passed into the function.

Comments

KentBye’s picture

This patch is a combination of this one as well as this related patch here.
The previous implode patch can stand on it's own, but the other patch is dependent upon this one.

KentBye’s picture

Status: Needs review » Needs work

Bumping this up since I see that these implode errors are still in the latest dev version of VotingAPI.
Patch probably needs to be rerolled.

eaton’s picture

Status: Needs work » Closed (won't fix)

Support for the 5.x branch of VotingAPI has ended with the release of Drupal 7 and the upcoming release of VotingAPI 7.x-2.4.