CakeEmail::emailRegex() change to null default value

This commit is contained in:
nojimage 2013-06-30 00:51:02 +09:00
parent 175280ad79
commit eabea1163f

View file

@ -535,8 +535,8 @@ class CakeEmail {
* @param string $regexp
* @return string|CakeEmail
*/
public function emailRegex($regex = false) {
if ($regex === false) {
public function emailRegex($regex = null) {
if ($regex === null) {
return $this->_emailRegex;
}
$this->_emailRegex = $regex;