Code Duplication    Length = 13-14 lines in 2 locations

application/controllers/account.php 2 locations

@@ 71-83 (lines=13) @@
68
	/**
69
	 * Timezone update
70
	 */
71
	public function update_tz()
72
	{
73
		$timezone = $this->input->post('timezone');
74
75
		$this->db->set('timezone', $timezone)
76
			->where('id', $this->session->userdata('uid'))
77
			->update('user');
78
79
		if($this->db->affected_rows() == 1)
80
		{
81
			$this->output->set_output('1');
82
		}
83
	}
84
85
	// --------------------------------------------------------------------------
86
@@ 90-103 (lines=14) @@
87
	/**
88
	 * Number format update
89
	 */
90
	public function update_nf()
91
	{
92
		$num_format = (int)$this->input->post('num_format');
93
94
		$this->db->set('num_format', $num_format)
95
			->where('id', $this->session->userdata('uid'))
96
			->update('user');
97
98
		if($this->db->affected_rows() == 1)
99
		{
100
			$this->session->set_userdata('num_format', $num_format);
101
			$this->output->set_output('1');
102
		}
103
	}
104
}
105
// End of controllers/account.php