Code Duplication    Length = 4-5 lines in 4 locations

admin/inc/class.admin_statistics.inc.php 1 location

@@ 234-237 (lines=4) @@
231
				{
232
					$users[] = $uid;
233
				}
234
				elseif (($members = $GLOBALS['egw']->accounts->members($uid,true)))
235
				{
236
					$users = array_merge($users,$members);
237
				}
238
			}
239
			$users = array_unique($users);
240
		}

calendar/inc/class.calendar_boupdate.inc.php 2 locations

@@ 243-247 (lines=5) @@
240
				calendar_so::split_status($status,$q,$r);
241
				if ($status[0] == 'R') continue;	// ignore rejected participants
242
243
				if ($uid < 0)	// group, check it's members too
244
				{
245
					$users += (array)$GLOBALS['egw']->accounts->members($uid,true);
246
					$users = array_unique($users);
247
				}
248
				$users[] = $uid;
249
				if (in_array($uid[0],$types_with_quantity))
250
				{
@@ 427-430 (lines=4) @@
424
			calendar_so::split_status($status,$q,$r);
425
			if ($status[0] == 'R') continue;	// ignore rejected participants
426
427
			if ($uid < 0)	// group, check it's members too
428
			{
429
				$users = array_unique(array_merge($users, (array)$GLOBALS['egw']->accounts->members($uid,true)));
430
			}
431
			$users[] = $uid;
432
			if (in_array($uid[0],$types_with_quantity))
433
			{

calendar/inc/class.calendar_so.inc.php 1 location

@@ 2020-2023 (lines=4) @@
2017
					),__LINE__,__FILE__,'calendar');
2018
				}
2019
				// for new or changed group-invitations, remove previously deleted members, so they show up again
2020
				if ($uid < 0)
2021
				{
2022
					$delete_deleted = array_merge($delete_deleted, $GLOBALS['egw']->accounts->members($uid, true));
2023
				}
2024
			}
2025
			if ($delete_deleted)
2026
			{