Code Duplication    Length = 9-10 lines in 2 locations

programs/vacuser.php 2 locations

@@ 2483-2492 (lines=10) @@
2480
	
2481
	$page->setTitle(absences_translate('Create a working days report entitling recovery'));
2482
	
2483
	if (absences_lockedForMainteance())
2484
	{
2485
		$page->addError(absences_getMaintenanceMessage());
2486
		
2487
	} else {
2488
	
2489
		$editor = new absences_WorkperiodRecoverRequestEditor($request, isset($spoofed), false);
2490
		$page->addItem($editor);
2491
		
2492
	}
2493
	
2494
	$page->displayHtml();
2495
}
@@ 2692-2700 (lines=9) @@
2689
		$page->setTitle(absences_translate('Request a deposit in my time saving account'));
2690
	}
2691
2692
	if (absences_lockedForMainteance())
2693
	{
2694
		$page->addError(absences_getMaintenanceMessage());
2695
2696
	} else {
2697
	
2698
		$editor = new absences_CetDepositRequestEditor($request, isset($_REQUEST['id_user']));
2699
		$page->addItem($editor);
2700
	}
2701
	
2702
	$page->displayHtml();
2703
}