#67146 by webchick, using update_sql() instead of db_query().

5.x
Neil Drumm 2006-06-11 23:10:13 +00:00
parent 930f8ca445
commit 24d04502c9
1 changed files with 2 additions and 2 deletions

View File

@ -2064,8 +2064,8 @@ function system_update_185() {
// Make the forum's vocabulary the highest in list, if present // Make the forum's vocabulary the highest in list, if present
$ret = array(); $ret = array();
if ($vid = variable_get('forum_nav_vocabulary', 0)) { if ($vid = (int) variable_get('forum_nav_vocabulary', 0)) {
db_query('UPDATE {vocabulary} SET weight = %d WHERE vid = %d', -10, $vid); $ret[] = update_sql('UPDATE {vocabulary} SET weight = -10 WHERE vid = '. $vid);
} }
return $ret; return $ret;