Code Duplication    Length = 5-6 lines in 2 locations

programs/vacuser.php 2 locations

@@ 3077-3082 (lines=6) @@
3074
			$babBody->addError(absences_translate("Access denied, this request is not modifiable"));
3075
			return false;
3076
		}
3077
		else
3078
		{
3079
			absences_viewVacationCalendar(array($id_user), true, true, bab_rp('nbmonth', 12), false);
3080
			period($id_user, $_REQUEST['id']);
3081
			return true;
3082
		}
3083
	}
3084
	else
3085
	{
@@ 3151-3155 (lines=5) @@
3148
		}
3149
		
3150
	
3151
		if (bab_vacRequestCreate($id_user)) {
3152
			absences_viewVacationCalendar(array($id_user), true, true, bab_rp('nbmonth', 12), false);
3153
			period($id_user);
3154
			return true;
3155
		}
3156
	}
3157
	
3158
	$babBody->addError(absences_translate("Access denied, no access to create a request"));