Code Duplication    Length = 10-10 lines in 2 locations

web_interface/astpp/application/modules/rates/controllers/rates.php 2 locations

@@ 150-159 (lines=10) @@
147
			$invalid_flag = true;
148
		}
149
150
		if ($invalid_flag)
151
		{
152
			$str = '';
153
			if (!isset($_POST['trunk_id']) || empty($_POST['trunk_id']))
154
			{
155
				$str.= '<br/>Please Create Trunk.';
156
			}
157
158
			if (empty($_FILES['termination_rate_import']['name']))
159
			{
160
				$str.= '<br/>Please Select  File.';
161
			}
162
@@ 341-350 (lines=10) @@
338
			$invalid_flag = true;
339
		}
340
341
		if ($invalid_flag)
342
		{
343
			$str = '';
344
			if (!isset($_POST['pricelist_id']) || empty($_POST['pricelist_id']))
345
			{
346
				$str.= '<br/>Please Create Rate Group.';
347
			}
348
349
			if (empty($_FILES['origination_rate_import']['name']))
350
			{
351
				$str.= '<br/>Please Select File.';
352
			}
353