Code Duplication    Length = 4-5 lines in 2 locations

web_interface/astpp/application/modules/accounts/controllers/accounts.php 1 location

@@ 526-529 (lines=4) @@
523
				$this->session->set_flashdata('astpp_notification', ' Caller ID already Exists.');
524
			}
525
		}
526
		if ($action == "delete") {
527
			$this->session->set_flashdata('astpp_notification', 'Caller ID removed sucessfully!');
528
			$this->db_model->delete("ani_map", array("id" => $aniid));
529
		}
530
		redirect(base_url() . $url);
531
	}
532

web_interface/astpp/application/modules/user/controllers/user.php 1 location

@@ 1401-1405 (lines=5) @@
1398
				$this->session->set_flashdata('astpp_notification', ' Caller ID already Exists.');
1399
			}
1400
		}
1401
		if ($action == "delete") {
1402
			$this->session->set_flashdata('astpp_notification', 'Caller ID removed sucessfully!');
1403
			$this->db_model->delete("ani_map", array("id" => $aniid));
1404
            
1405
		}
1406
		redirect(base_url() . "user/user_animap_list/");
1407
	}
1408