Code Duplication    Length = 4-4 lines in 3 locations

acp/main_module.php 3 locations

@@ 236-239 (lines=4) @@
233
234
			case 'delete':
235
236
				if (!$attr_id)
237
				{
238
					trigger_error($user->lang['QTE_MUST_SELECT'] . adm_back_link($this->u_action), E_USER_WARNING);
239
				}
240
241
				if (confirm_box(true))
242
				{
@@ 314-317 (lines=4) @@
311
			case 'move_up':
312
			case 'move_down':
313
314
				if (!$attr_id)
315
				{
316
					trigger_error($user->lang['QTE_MUST_SELECT'] . adm_back_link($this->u_action), E_USER_WARNING);
317
				}
318
319
				$sql = 'SELECT *
320
					FROM ' . $table_prefix . 'topics_attr
@@ 326-329 (lines=4) @@
323
				$row = $db->sql_fetchrow($result);
324
				$db->sql_freeresult($result);
325
326
				if (!$row)
327
				{
328
					trigger_error($user->lang['QTE_MUST_SELECT'] . adm_back_link($this->u_action), E_USER_WARNING);
329
				}
330
331
				$move_attr_name = $this->qte_move($row, $action, 1);
332
				if ($move_attr_name !== false)