summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-06-11 23:10:13 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-06-11 23:10:13 +0000
commit24d04502c9571e553bdafd9c1c25366e5f68ef4d (patch)
treecde9da731db84b42796a61a5e73051961a3db35a
parent930f8ca445b3029532cea4bd75b0b63e452b5e88 (diff)
downloadbrdo-24d04502c9571e553bdafd9c1c25366e5f68ef4d.tar.gz
brdo-24d04502c9571e553bdafd9c1c25366e5f68ef4d.tar.bz2
#67146 by webchick, using update_sql() instead of db_query().
-rw-r--r--database/updates.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/database/updates.inc b/database/updates.inc
index a9f153b30..b1110f2ae 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -2064,8 +2064,8 @@ function system_update_185() {
// Make the forum's vocabulary the highest in list, if present
$ret = array();
- if ($vid = variable_get('forum_nav_vocabulary', 0)) {
- db_query('UPDATE {vocabulary} SET weight = %d WHERE vid = %d', -10, $vid);
+ if ($vid = (int) variable_get('forum_nav_vocabulary', 0)) {
+ $ret[] = update_sql('UPDATE {vocabulary} SET weight = -10 WHERE vid = '. $vid);
}
return $ret;