Project

General

Profile

« Previous | Next » 

Revision 733

Added by thorn over 16 years ago

fixed ticket #562, applied changes from user tavitar with some own additions

View differences:

settings2.php
86 86

  
87 87
// Setup admin groups
88 88
$admin_groups[] = 1;
89
if(!in_array(1, $admin->get_groups_id())) {
90
	$admin_groups[] = implode(",",$admin->get_groups_id());
91
}
89
//if(!in_array(1, $admin->get_groups_id())) {
90
//	$admin_groups[] = implode(",",$admin->get_groups_id());
91
//}
92 92
$admin_groups = implode(',', $admin_groups);
93 93
// Setup viewing groups
94 94
$viewing_groups[] = 1;
95
if(!in_array(1, $admin->get_groups_id())) {
96
	$viewing_groups[] = implode(",",$admin->get_groups_id());
97
}
95
//if(!in_array(1, $admin->get_groups_id())) {
96
//	$viewing_groups[] = implode(",",$admin->get_groups_id());
97
//}
98 98
$viewing_groups = implode(',', $viewing_groups);
99 99

  
100 100
// If needed, get new order

Also available in: Unified diff