Code Duplication    Length = 4-6 lines in 2 locations

root/includes/acp/acp_directory.php 2 locations

@@ 363-368 (lines=6) @@
360
					}
361
				}
362
363
				if ($submit)
364
				{
365
					add_log('admin', 'DIR_CONFIG_' . strtoupper($mode));
366
367
					trigger_error($user->lang['CONFIG_UPDATED'] . adm_back_link($this->u_action));
368
				}
369
370
				$this->tpl_name = 'acp_board';
371
				$this->page_title = $display_vars['title'];
@@ 950-953 (lines=4) @@
947
948
				if ($submit && sizeof($mark))
949
				{
950
					if ($action !== 'delete' && !check_form_key($form_key))
951
					{
952
						trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
953
					}
954
955
					$sql_array = array(
956
						'SELECT'	=> 'a.link_id, a.link_name, a.link_url, a.link_description, a.link_banner, a.link_user_id, a.link_guest_email, u.username, u.user_email, u.user_lang, u.user_notify_type, c.cat_name',