From 2d38a6f535c855ef47075eb056f7901c86916125 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 17 Dec 2012 11:12:49 +0800 Subject: [PATCH] DataObjects/Groups.php --- DataObjects/Groups.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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(); } -- 2.39.2