Code Duplication    Length = 4-4 lines in 2 locations

controller/admin_controller.php 2 locations

@@ 126-129 (lines=4) @@
123
			{
124
				$errors[] = $this->user->lang('AD_NAME_REQUIRED');
125
			}
126
			if (truncate_string($data['ad_name'], self::MAX_NAME_LENGTH) !== $data['ad_name'])
127
			{
128
				$errors[] = $this->user->lang('AD_NAME_TOO_LONG', self::MAX_NAME_LENGTH);
129
			}
130
131
			if (empty($errors))
132
			{
@@ 190-193 (lines=4) @@
187
			{
188
				$errors[] = $this->user->lang('AD_NAME_REQUIRED');
189
			}
190
			if (truncate_string($data['ad_name'], self::MAX_NAME_LENGTH) !== $data['ad_name'])
191
			{
192
				$errors[] = $this->user->lang('AD_NAME_TOO_LONG', self::MAX_NAME_LENGTH);
193
			}
194
195
			if (empty($errors))
196
			{