Code Duplication    Length = 18-19 lines in 2 locations

programs/vacuser.php 2 locations

@@ 2430-2448 (lines=19) @@
2427
	$W = bab_Widgets();
2428
	$page = $W->BabPage();
2429
	
2430
	if (isset($_POST['workperiod']))
2431
	{
2432
		if ( isset($_POST['workperiod']['cancel']) )
2433
		{
2434
			absences_workperiodGotoList();
2435
		}
2436
	
2437
	
2438
		if( isset($_POST['workperiod']['save'] ))
2439
		{
2440
			try {
2441
				absences_saveWorkperiodRecoverRequest($_POST['workperiod'], $request);
2442
				
2443
			} catch (Exception $e)
2444
			{
2445
				$page->addError($e->getMessage());
2446
			}
2447
		}
2448
	}
2449
	
2450
	
2451
	$page->setTitle(absences_translate('Create a working days report entitling recovery'));
@@ 2625-2642 (lines=18) @@
2622
	
2623
2624
	
2625
	if (isset($_POST['cet']))
2626
	{
2627
		if ( isset($_POST['cet']['cancel']) )
2628
		{
2629
			absences_cetGotoList();
2630
		}
2631
	
2632
	
2633
		if( isset($_POST['cet']['save'] ))
2634
		{
2635
			try {
2636
				absences_saveCetDepositRequest($_POST['cet'], $request);
2637
			} catch (Exception $e)
2638
			{
2639
				$page->addError($e->getMessage());
2640
			}
2641
		}
2642
	}
2643
	
2644
	if (isset($request) && $request->id)
2645
	{