DataObjects/Person.php
authorAlan Knowles <alan@akbkhome.com>
Mon, 28 Nov 2011 07:32:51 +0000 (15:32 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 28 Nov 2011 07:32:51 +0000 (15:32 +0800)
DataObjects/Person.php

index 5a0ae3c..dda6dfb 100644 (file)
@@ -390,6 +390,7 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
         }
         
         $g = DB_DataObject::Factory('Group_Members');
+        $g->whereAdd('group_id is NO NULL AND user_id IS NOT NULL');
         if (!$g->count()) {
             // add the current user to the admin group..
             $g = DB_DataObject::Factory('Groups');