Code Duplication    Length = 4-4 lines in 3 locations

mail/inc/class.mail_ui.inc.php 3 locations

@@ 1288-1291 (lines=4) @@
1285
		);
1286
		//error_log(__METHOD__.__LINE__.array2string(array_keys($actions)));
1287
		// save as tracker, save as infolog, as this are actions that are either available for all, or not, we do that for all and not via css-class disabling
1288
		if (!isset($GLOBALS['egw_info']['user']['apps']['infolog']))
1289
		{
1290
			unset($actions['infolog']);
1291
		}
1292
		if (!isset($GLOBALS['egw_info']['user']['apps']['tracker']))
1293
		{
1294
			unset($actions['tracker']);
@@ 1292-1295 (lines=4) @@
1289
		{
1290
			unset($actions['infolog']);
1291
		}
1292
		if (!isset($GLOBALS['egw_info']['user']['apps']['tracker']))
1293
		{
1294
			unset($actions['tracker']);
1295
		}
1296
		if (!isset($GLOBALS['egw_info']['user']['apps']['calendar']))
1297
		{
1298
			unset($actions['calendar']);
@@ 1296-1299 (lines=4) @@
1293
		{
1294
			unset($actions['tracker']);
1295
		}
1296
		if (!isset($GLOBALS['egw_info']['user']['apps']['calendar']))
1297
		{
1298
			unset($actions['calendar']);
1299
		}
1300
		return $actions;
1301
	}
1302