Index: og_mandatory_group.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/og_mandatory_group/og_mandatory_group.module,v
retrieving revision 1.4.2.3
diff -u -p -r1.4.2.3 og_mandatory_group.module
--- og_mandatory_group.module	24 Oct 2006 00:39:49 -0000	1.4.2.3
+++ og_mandatory_group.module	28 Aug 2007 16:36:07 -0000
@@ -76,7 +76,12 @@ function og_mandatory_group_user($op, &$
       }
       break;    
     case 'insert':
-      if (($group = variable_get('og_mandatory_group', 0)) != 0) {
+      if ($account->uid == 0) {
+        watchdog('user', t('Attempted to add UID 0 to the mandatory group'),
+                 WATCHDOG_WARNING);
+      }
+      
+      if (($group = variable_get('og_mandatory_group', 0)) != 0 && $account->uid != 0) {
         og_save_subscription($group, $account->uid, array('is_active' => 1));
         // mail the admins
         $node = node_load($group);
