diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-08 00:42:59 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-08 00:42:59 +0100 |
commit | 7203d54604a372fd8dd0b30bd8d4cdbd0af738bc (patch) | |
tree | af3bac1918ebd0fbd3d7564fc7c5fca34e6c2733 /system/helpers/email_helper.php | |
parent | 51a22815994cfd4522c78177e41f064ab8e53415 (diff) | |
parent | ad9cd5938fe3c0859445e43c893c18ed172a33ce (diff) |
Merge upstream branch
Diffstat (limited to 'system/helpers/email_helper.php')
-rw-r--r-- | system/helpers/email_helper.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/system/helpers/email_helper.php b/system/helpers/email_helper.php index e6a9003e2..f184031a9 100644 --- a/system/helpers/email_helper.php +++ b/system/helpers/email_helper.php @@ -1,13 +1,13 @@ -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); +<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * NOTICE OF LICENSE - * + * * Licensed under the Open Software License version 3.0 - * + * * This source file is subject to the Open Software License (OSL 3.0) that is * bundled with this package in the files license.txt / license.rst. It is * also available through the world wide web at this URL: @@ -49,7 +49,7 @@ if ( ! function_exists('valid_email')) { function valid_email($address) { - return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $address)) ? FALSE : TRUE; + return (bool) preg_match('/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix', $address); } } @@ -69,6 +69,5 @@ if ( ! function_exists('send_email')) } } - /* End of file email_helper.php */ -/* Location: ./system/helpers/email_helper.php */
\ No newline at end of file +/* Location: ./system/helpers/email_helper.php */ |