From a04728577f34b98936c53799ccf1f2aaf7f3ff03 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 29 Dec 2008 16:03:57 +0000 Subject: - Patch #352054 by catch: convert calls to db_placeholders() in static queries. --- modules/taxonomy/taxonomy.api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/taxonomy/taxonomy.api.php') diff --git a/modules/taxonomy/taxonomy.api.php b/modules/taxonomy/taxonomy.api.php index fd6d2bcd7..617204d8a 100644 --- a/modules/taxonomy/taxonomy.api.php +++ b/modules/taxonomy/taxonomy.api.php @@ -85,7 +85,7 @@ function hook_taxonomy_vocabulary_delete($vocabulary) { * An array of term objects, indexed by tid. */ function hook_taxonomy_term_load($terms) { - $result = db_query('SELECT tid, foo FROM {mytable} WHERE tid IN (' . db_placeholders(array_keys($terms)) . ')', array_keys($terms)); + $result = db_query('SELECT tid, foo FROM {mytable} WHERE tid IN (:tids)', array(':tids' => array_keys($terms))); foreach ($result as $record) { $terms[$record->tid]->foo = $record->foo; } -- cgit v1.2.3