Code Duplication    Length = 4-4 lines in 3 locations

acp/main_module.php 3 locations

@@ 265-268 (lines=4) @@
262
263
			case 'delete':
264
265
				if (!$attr_id)
266
				{
267
					trigger_error($user->lang['QTE_MUST_SELECT'] . adm_back_link($this->u_action), E_USER_WARNING);
268
				}
269
270
				if (confirm_box(true))
271
				{
@@ 341-344 (lines=4) @@
338
			case 'move_up':
339
			case 'move_down':
340
341
				if (!$attr_id)
342
				{
343
					trigger_error($user->lang['QTE_MUST_SELECT'] . adm_back_link($this->u_action), E_USER_WARNING);
344
				}
345
346
				$sql = 'SELECT *
347
					FROM ' . $table_prefix . 'topics_attr
@@ 353-356 (lines=4) @@
350
				$row = $db->sql_fetchrow($result);
351
				$db->sql_freeresult($result);
352
353
				if (!$row)
354
				{
355
					trigger_error($user->lang['QTE_MUST_SELECT'] . adm_back_link($this->u_action), E_USER_WARNING);
356
				}
357
358
				$move_attr_name = $this->qte_move($row, $action, 1);
359
				if ($move_attr_name !== false)