Code Duplication    Length = 11-11 lines in 2 locations

programs/vacuser.php 2 locations

@@ 3248-3258 (lines=11) @@
3245
		}
3246
		
3247
		
3248
		if ($id_deposit = bab_pp('id_deposit'))
3249
		{
3250
			require_once dirname(__FILE__).'/utilit/cet_deposit_request.class.php';
3251
			$deposit = absences_CetDepositRequest::getById($id_deposit);
3252
			if ($deposit->canDelete())
3253
			{
3254
				$deposit->delete();
3255
				$url = new bab_url(bab_pp('url'));
3256
				$url->location();
3257
			}
3258
		}
3259
		
3260
		
3261
		if ($id_recovery = bab_pp('id_recovery'))
@@ 3261-3271 (lines=11) @@
3258
		}
3259
		
3260
		
3261
		if ($id_recovery = bab_pp('id_recovery'))
3262
		{
3263
			require_once dirname(__FILE__).'/utilit/workperiod_recover_request.class.php';
3264
			$recovery = absences_WorkperiodRecoverRequest::getById($id_recovery);
3265
			if ($recovery->canDelete())
3266
			{
3267
				$recovery->delete();
3268
				$url = new bab_url(bab_pp('url'));
3269
				$url->location();
3270
			}
3271
		}
3272
		
3273
		break;
3274
	}