--- drupalvb.module	2008-06-18 18:48:40.000000000 -0500
+++ drupalvb-d6.module	2008-06-19 20:59:02.000000000 -0500
@@ -188,7 +188,7 @@ function drupalvb_user($op, &$edit, &$ac
  */
 function drupalvb_user_login($account) {
   // If user does not exist in vB, create one.
-  if (db_num_rows(drupalvb_db_query("SELECT userid FROM {user} WHERE username = '%s'", $account->name)) < 1) {
+  if (db_result(drupalvb_db_query("SELECT count(*) FROM {user} WHERE username = '%s'", $account->name)) < 1) {
     drupalvb_create_user($account, (array)$account);
   }
   // Set last activity time and ensure user mapping.
@@ -248,7 +248,7 @@ function drupalvb_user_validate($uid, &$
   }
 
   // Validate the e-mail address.
-  if (db_num_rows(drupalvb_db_query("SELECT userid FROM {user} WHERE userid != %d AND LOWER(email) = LOWER('%s')", $userid, $edit['mail'])) > 0) {
+  if (db_result(drupalvb_db_query("SELECT count(*) FROM {user} WHERE userid != %d AND LOWER(email) = LOWER('%s')", $userid, $edit['mail'])) > 0) {
     form_set_error('mail', t('The e-mail address %email is already registered. <a href="@password">Have you forgotten your password?</a>', array('%email' => $edit['mail'], '@password' => url('user/password'))));
   }
 }
@@ -544,10 +544,10 @@ function theme_drupalvb_block_recent($re
   $items = array();
   $display_authors = variable_get('drupalvb_block_recent_authors', 0);
   foreach ($recent as $item) {
-    $items[] = l($item['title'], $item['url'], array('query' => $item['query'], 'fragment' => $item['fragment']) . ($display_authors ? ' <em>'. $item['name'] .'</em>' : ''));
+    $items[] = l($item['title'], $item['url'], array('query' => $item['query'], 'fragment' => $item['fragment'])) . ($display_authors ? ' <em>'. $item['name'] .'</em>' : '');
   }
   $output = theme('item_list', $items);
-  $output .= l(t('View the forum'), $vb_options['bburl']);
+  $output .= l('View the forum', $vb_options['bburl']);
   return $output;
 }
 
