projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59d0dd2
)
DataObjects/Groups.php
author
Alan Knowles
<alan@roojs.com>
Mon, 17 Dec 2012 03:12:49 +0000
(11:12 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 17 Dec 2012 03:12:49 +0000
(11:12 +0800)
DataObjects/Groups.php
patch
|
blob
|
history
diff --git
a/DataObjects/Groups.php
b/DataObjects/Groups.php
index
e490f32
..
3e792ef
100755
(executable)
--- 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();
}