Closed (duplicate)
Project:
Tagadelic
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2008 at 05:23 UTC
Updated:
15 Dec 2008 at 22:40 UTC
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
Comment #1
Bèr Kessels commentedcorrect. This was introduced in 6 and should be used.
Comment #2
neochief commented#10 patch of this issue provides db_placeholders support:
#250818: SQL accounting for revision history and i18n