From: Alan Knowles Date: Mon, 17 Dec 2012 03:12:49 +0000 (+0800) Subject: DataObjects/Groups.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=2d38a6f535c855ef47075eb056f7901c86916125;p=Pman.Core DataObjects/Groups.php --- diff --git a/DataObjects/Groups.php b/DataObjects/Groups.php index e490f32f..3e792efa 100755 --- a/DataObjects/Groups.php +++ b/DataObjects/Groups.php @@ -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(); }