@@ 216-229 (lines=14) @@ | ||
213 | * |
|
214 | * @return bool |
|
215 | */ |
|
216 | public function email_check($emails) { |
|
217 | ||
218 | $emails = str_replace(' ', '', $emails); |
|
219 | ||
220 | foreach (explode(',', $emails) as $e) { |
|
221 | if (!filter_var($e, FILTER_VALIDATE_EMAIL)) { |
|
222 | $this->form_validation->set_message('email_check', lang('Field', 'cmsemail') . ' %s ' . lang('Must contain valid email', 'cmsemail')); |
|
223 | ||
224 | return false; |
|
225 | } |
|
226 | } |
|
227 | ||
228 | return TRUE; |
|
229 | } |
|
230 | ||
231 | /** |
|
232 | * @param null|string $locale |
@@ 265-278 (lines=14) @@ | ||
262 | * |
|
263 | * @return bool |
|
264 | */ |
|
265 | public function email_check($emails) { |
|
266 | ||
267 | $emails = str_replace(' ', '', $emails); |
|
268 | ||
269 | foreach (explode(',', $emails) as $e) { |
|
270 | if (!filter_var($e, FILTER_VALIDATE_EMAIL)) { |
|
271 | $this->form_validation->set_message('email_check', lang('Field', 'cmsemail') . ' %s ' . lang('Must contain valid email', 'cmsemail')); |
|
272 | ||
273 | return false; |
|
274 | } |
|
275 | } |
|
276 | ||
277 | return TRUE; |
|
278 | } |
|
279 | ||
280 | /** |
|
281 | * @return array|string |