Index: content_profile.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/content_profile/Attic/content_profile.module,v
retrieving revision 1.1.2.32
diff -u -p -r1.1.2.32 content_profile.module
--- content_profile.module	7 Jan 2009 10:58:05 -0000	1.1.2.32
+++ content_profile.module	17 Jun 2009 21:39:10 -0000
@@ -268,6 +268,11 @@ function content_profile_form_alter(&$fo
     if (!empty($_GET['uid']) && ($uid = intval($_GET['uid'])) && ($user = user_load($uid))) {
       $form['author']['name']['#default_value'] = $user->name;
     }
+    // If an admin wants to just add a node of this type, set the default node author to anonymous.
+    // This is patched functionality.
+    if (arg(0) == 'node' && arg(1) == 'add') {
+      $form['author']['name']['#default_value'] = '';
+    }
   }
 }
 
@@ -394,6 +399,9 @@ function content_profile_nodeapi(&$node,
  * @return If a node exists, the node id, FALSE else.
  */
 function content_profile_profile_exists($node, $uid) {
+  if (!$uid) {
+    return FALSE;
+  }
   $query = "SELECT n.nid AS nid FROM {node} n WHERE n.type = '%s' AND n.uid = %d ";
   if (module_exists('translation') && translation_supported_type($node->type)) {
     $query .= "AND n.language = '%s'";
