In the database query from tagadelic_get_weighted_tags, the following piece of code

substr(str_repeat('%d,', count($vids)), 0, -1)

should be replaced with (the much simpler)

db_placeholders($vids, 'int')

Comments

Bèr Kessels’s picture

Status: Active » Needs work

correct. This was introduced in 6 and should be used.

neochief’s picture

Status: Needs work » Closed (duplicate)

#10 patch of this issue provides db_placeholders support:
#250818: SQL accounting for revision history and i18n