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

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