? 351138-profile-table-doesnt-exist.patch
Index: modules/spam_user.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/spam/modules/Attic/spam_user.inc,v
retrieving revision 1.1.2.1.2.7.2.1
diff -u -p -r1.1.2.1.2.7.2.1 spam_user.inc
--- modules/spam_user.inc	25 Dec 2008 05:42:11 -0000	1.1.2.1.2.7.2.1
+++ modules/spam_user.inc	22 Jan 2009 18:56:54 -0000
@@ -223,12 +223,8 @@ function user_spamapi($op, $arg1 = NULL,
  * Be sure we're scanning the latest profile data.
  */
 function spam_user_profile_update($user) {
-  $profile = array();
-
-  $result = db_query('SELECT fid, value FROM {profile_values} WHERE uid = %d', $user->uid);
-  while ($value = db_fetch_object($result)) {
-    $name = db_result(db_query('SELECT name FROM {profile_fields} WHERE fid = %d', $value->fid));
-    $user->$name = $value->value;
+  if (module_exists('profile')) {
+    profile_load_profile($user);
   }
   return $user;
 }
