Code Duplication    Length = 3-3 lines in 2 locations

manager/actions/mutate_module.dynamic.php 1 location

@@ 50-52 (lines=3) @@
47
	}
48
	$content['properties'] = str_replace("&", "&", $content['properties']);
49
	$_SESSION['itemname'] = $content['name'];
50
	if($content['locked'] == 1 && $_SESSION['mgrRole'] != 1) {
51
		$modx->webAlertAndQuit($_lang["error_no_privileges"]);
52
	}
53
} else {
54
	$_SESSION['itemname'] = $_lang["new_module"];
55
	$content['wrap'] = '1';

manager/actions/mutate_module_resources.dynamic.php 1 location

@@ 112-114 (lines=3) @@
109
	$modx->webAlertAndQuit("Module not found for id '{$id}'.");
110
}
111
$_SESSION['itemname'] = $content['name'];
112
if($content['locked'] == 1 && $_SESSION['mgrRole'] != 1) {
113
	$modx->webAlertAndQuit($_lang["error_no_privileges"]);
114
}
115
116
?>
117
<script type="text/javascript">