Code Duplication    Length = 4-8 lines in 2 locations

programs/approb.php 2 locations

@@ 586-589 (lines=4) @@
583
	{
584
		if (isset($_POST['confirm'])) {
585
586
			if (!absences_confirmVacationRequest(bab_pp('veid'), bab_pp('remarks'), true)) {
587
				$babBody->addError(absences_translate('Access denied'));
588
				return;
589
			}
590
591
		} else if (isset($_POST['refuse'])) {
592
@@ 591-598 (lines=8) @@
588
				return;
589
			}
590
591
		} else if (isset($_POST['refuse'])) {
592
593
			if (!absences_confirmVacationRequest(bab_pp('veid'), bab_pp('remarks'), false)) {
594
				$babBody->addError(absences_translate('Access denied'));
595
				return;
596
			}
597
598
		}
599
		$idx = 'unload';
600
	}
601
}