Commit b74b78cb authored by dww's avatar dww

#201130 by dww: Added DB table prefix for devel_generate_add_terms()

parent a200276a
......@@ -362,7 +362,7 @@ function devel_create_greeking($words, $title = FALSE) {
function devel_generate_add_terms(&$node) {
$vocabs = taxonomy_get_vocabularies($node->type);
foreach ($vocabs as $vocab) {
$sql = "SELECT tid FROM term_data WHERE vid = %d ORDER BY RAND()";
$sql = "SELECT tid FROM {term_data} WHERE vid = %d ORDER BY RAND()";
$result = db_query_range($sql, $vocab->vid, 0, 5);
while ($row = db_fetch_object($result)) {
if ($vocab->tags) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment