Code Duplication    Length = 9-10 lines in 2 locations

programs/portletbackend.class.php 1 location

@@ 245-254 (lines=10) @@
242
		$res = absences_publicCalendarUsers(bab_rp('keyword', null), bab_rp('departments', null), bab_rp('searchtype'), bab_rp('dateb'), bab_rp('datee'), bab_rp('date'));
243
		
244
		$i = 0;
245
		while ($arr = $babDB->db_fetch_assoc($res))
246
		{
247
			$users[] = $arr['id'];
248
			if ($i > $initusers)
249
			{
250
				break;
251
			}
252
		
253
			$i++;
254
		}
255
		
256
		if (empty($users) && '' === bab_rp('keyword') && '' === bab_rp('dateb') && '' === bab_rp('datee') && '' === bab_rp('date'))
257
		{

programs/planning.php 1 location

@@ 582-590 (lines=9) @@
579
	$res = absences_publicCalendarUsers(bab_rp('keyword', null), bab_rp('departments', null), bab_rp('searchtype'), bab_rp('dateb'), bab_rp('datee'), bab_rp('date'));
580
	
581
	$i = 0;
582
	while ($arr = $babDB->db_fetch_assoc($res))
583
	{
584
		$users[] = $arr['id'];
585
		if ($i > $initusers) {
586
			break;
587
		}
588
		
589
		$i++;
590
	}
591
	
592
	absences_viewVacationCalendar($users, false, true, $nbmonth, true, $babDB->db_num_rows($res));
593
}