DataObjects/Groups.php
authorAlan Knowles <alan@roojs.com>
Mon, 17 Dec 2012 03:12:49 +0000 (11:12 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 17 Dec 2012 03:12:49 +0000 (11:12 +0800)
DataObjects/Groups.php

index e490f32..3e792ef 100755 (executable)
@@ -118,7 +118,13 @@ class Pman_Core_DataObjects_Groups extends DB_DataObject
     function initGroups()
     {
         
-        
+        $g = DB_DataObject::factory('Groups');
+        $g->type = 0;
+        $g->name = 'Administrators';
+        if ($g->count()) {
+            return;
+        }
+        $g->insert();
         
         
     }