Code Duplication    Length = 4-4 lines in 2 locations

controller/admin_controller.php 2 locations

@@ 136-139 (lines=4) @@
133
			{
134
				$errors[] = $this->user->lang('AD_NAME_REQUIRED');
135
			}
136
			if (truncate_string($data['ad_name'], self::MAX_NAME_LENGTH) !== $data['ad_name'])
137
			{
138
				$errors[] = $this->user->lang('AD_NAME_TOO_LONG', self::MAX_NAME_LENGTH);
139
			}
140
141
			if (empty($errors))
142
			{
@@ 200-203 (lines=4) @@
197
			{
198
				$errors[] = $this->user->lang('AD_NAME_REQUIRED');
199
			}
200
			if (truncate_string($data['ad_name'], self::MAX_NAME_LENGTH) !== $data['ad_name'])
201
			{
202
				$errors[] = $this->user->lang('AD_NAME_TOO_LONG', self::MAX_NAME_LENGTH);
203
			}
204
205
			if (empty($errors))
206
			{