| @@ 166-171 (lines=6) @@ | ||
| 163 | ||
| 164 | $this->form_validation->set_rules('admin_email', lang('Admin address', 'cmsemail'), 'valid_email'); |
|
| 165 | ||
| 166 | if ($this->form_validation->run($this) == FALSE) { |
|
| 167 | $this->errors = validation_errors(); |
|
| 168 | return FALSE; |
|
| 169 | } else { |
|
| 170 | return TRUE; |
|
| 171 | } |
|
| 172 | } else { |
|
| 173 | if (is_array($data) && !empty($data)) { |
|
| 174 | foreach ($data as $key => $d) { |
|
| @@ 238-243 (lines=6) @@ | ||
| 235 | ||
| 236 | $this->form_validation->set_rules('admin_email', lang('Admin address', 'cmsemail'), 'trim|callback_email_check'); |
|
| 237 | ||
| 238 | if ($this->form_validation->run($this) == FALSE) { |
|
| 239 | $this->errors = validation_errors(); |
|
| 240 | return FALSE; |
|
| 241 | } else { |
|
| 242 | return TRUE; |
|
| 243 | } |
|
| 244 | } else { |
|
| 245 | if (is_array($data) && !empty($data)) { |
|
| 246 | foreach ($data as $key => $d) { |
|