diff --git a/resources/classes/groups.php b/resources/classes/groups.php index caa09ba60f..92d0037d24 100644 --- a/resources/classes/groups.php +++ b/resources/classes/groups.php @@ -91,27 +91,32 @@ if (!class_exists('groups')) { $result = $prep_statement->fetchAll(PDO::FETCH_ASSOC); if (count($result) == 0) { $x = 0; - $tmp[$x]['group_name'] = 'superadmin'; - $tmp[$x]['group_description'] = 'Super Administrator Group'; - $tmp[$x]['group_protected'] = 'false'; + //$groups[$x]['group_uuid'] = ''; + $groups[$x]['group_name'] = 'superadmin'; + $groups[$x]['group_description'] = 'Super Administrator Group'; + $groups[$x]['group_protected'] = 'false'; $x++; - $tmp[$x]['group_name'] = 'admin'; - $tmp[$x]['group_description'] = 'Administrator Group'; - $tmp[$x]['group_protected'] = 'false'; + //$groups[$x]['group_uuid'] = ''; + $groups[$x]['group_name'] = 'admin'; + $groups[$x]['group_description'] = 'Administrator Group'; + $groups[$x]['group_protected'] = 'false'; $x++; - $tmp[$x]['group_name'] = 'user'; - $tmp[$x]['group_description'] = 'User Group'; - $tmp[$x]['group_protected'] = 'false'; + //$groups[$x]['group_uuid'] = ''; + $groups[$x]['group_name'] = 'user'; + $groups[$x]['group_description'] = 'User Group'; + $groups[$x]['group_protected'] = 'false'; $x++; - $tmp[$x]['group_name'] = 'public'; - $tmp[$x]['group_description'] = 'Public Group'; - $tmp[$x]['group_protected'] = 'false'; + //$groups[$x]['group_uuid'] = ''; + $groups[$x]['group_name'] = 'public'; + $groups[$x]['group_description'] = 'Public Group'; + $groups[$x]['group_protected'] = 'false'; $x++; - $tmp[$x]['group_name'] = 'agent'; - $tmp[$x]['group_description'] = 'Call Center Agent Group'; - $tmp[$x]['group_protected'] = 'false'; + //$groups[$x]['group_uuid'] = ''; + $groups[$x]['group_name'] = 'agent'; + $groups[$x]['group_description'] = 'Call Center Agent Group'; + $groups[$x]['group_protected'] = 'false'; $this->db->beginTransaction(); - foreach($tmp as $row) { + foreach($groups as $row) { if (strlen($row['group_name']) > 0) { $sql = "insert into v_groups "; $sql .= "("; @@ -188,4 +193,4 @@ if (!class_exists('groups')) { $group = new groups; $group->defaults(); */ -?> \ No newline at end of file +?>