Index: role_weights.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/role_weights/role_weights.module,v
retrieving revision 1.2.2.2
diff -u -r1.2.2.2 role_weights.module
--- role_weights.module	6 Jun 2006 17:44:03 -0000	1.2.2.2
+++ role_weights.module	29 Jan 2007 18:26:38 -0000
@@ -109,13 +109,13 @@
  */
 function _role_weights_set_weights($weights) {
   foreach ($weights as $rid => $weight) {
-    $result = db_query('SELECT count(rid) AS count FROM role_weights WHERE rid=%d', $rid);
+    $result = db_query('SELECT count(rid) AS count FROM {role_weights} WHERE rid=%d', $rid);
     $row = db_fetch_object($result);
     if ($row->count == 0) {
-      db_query('INSERT INTO role_weights (rid, weight) VALUES (%d, %d)', $rid, $weight);
+      db_query('INSERT INTO {role_weights} (rid, weight) VALUES (%d, %d)', $rid, $weight);
     }
     else {
-      db_query('UPDATE role_weights SET weight=%d WHERE rid=%d', $weight, $rid);
+      db_query('UPDATE {role_weights} SET weight=%d WHERE rid=%d', $weight, $rid);
     }
   }
 
@@ -127,7 +127,7 @@
  */
 function _role_weights_get_weights() {
   $weights = array();
-  $result = db_query('SELECT * FROM role_weights');
+  $result = db_query('SELECT * FROM {role_weights}');
   while ($row = db_fetch_object($result)) {
     $weights[$row->rid] = $row->weight;
   }
