Index: og2list.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/og2list/og2list.module,v
retrieving revision 1.109
diff -u -r1.109 og2list.module
--- og2list.module	5 Aug 2007 12:35:31 -0000	1.109
+++ og2list.module	17 Mar 2008 15:54:47 -0000
@@ -383,7 +383,7 @@
       // then the recipient wasn't set and we update it.  For now you still cannot change
       // a recipient once it's set.
       //
-      if ($node->recipient && (db_num_rows(db_query("SELECT recipient FROM {og2list_groups} WHERE nid = %d", $node->nid)) == 0)) {
+      if ($node->nid && $node->recipient && (db_num_rows(db_query("SELECT recipient FROM {og2list_groups} WHERE nid = %d", $node->nid)) == 0)) {
         db_query("INSERT INTO {og2list_groups} (nid, recipient, status) VALUES(%d, '%s', 1)", $node->nid, $node->recipient);
       }	
  
