Code Duplication    Length = 11-11 lines in 2 locations

programs/vacadm.php 1 location

@@ 1349-1359 (lines=11) @@
1346
		break;
1347
1348
1349
	case "delu":
1350
		$babBody->title = absences_translate("Delete users");
1351
		deleteVacationPersonnel(
1352
			bab_rp('pos'),
1353
			bab_rp('idcol'),
1354
			bab_rp('idsa'),
1355
			bab_rp('userids',array())
1356
		);
1357
		$babBody->addItemMenu("lper", absences_translate("Personnel"), absences_addon()->getUrl()."vacadm&idx=lper");
1358
		$babBody->addItemMenu("delu", absences_translate("Delete"), absences_addon()->getUrl()."vacadm&idx=delu");
1359
		break;
1360
1361
	case "modp":
1362
		$babBody->title = absences_translate("Modify user");

programs/vacadmb.php 1 location

@@ 974-984 (lines=11) @@
971
972
973
		
974
	case "ddreq":
975
		$babBody->title = absences_translate("Delete vacations requests");
976
		if(!empty($_POST)) {
977
			deleteInfoVacationRequests(bab_rp('dateb'), bab_rp('userid'));
978
		} else {
979
			deleteVacationRequests(bab_rp('dateb'), bab_rp('userid'));
980
		}
981
		
982
		$babBody->addItemMenu("lreq", absences_translate("Requests"), absences_addon()->getUrl()."vacadmb&idx=lreq");
983
		$babBody->addItemMenu("ddreq", absences_translate("Delete"), absences_addon()->getUrl()."vacadmb&idx=ddreq");
984
		break;
985
		
986
	case 'delete':
987
		$babBody->title = absences_translate("Delete vacation request");