Permalink
Browse files

CakeEmail::emailRegex() change to null default value

  • Loading branch information...
1 parent 175280a commit eabea1163fc7a72afbe2f48c880d148bc6d9060f @nojimage nojimage committed Jun 29, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Network/Email/CakeEmail.php
View
4 lib/Cake/Network/Email/CakeEmail.php
@@ -535,8 +535,8 @@ public function headerCharset($charset = null) {
* @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;

0 comments on commit eabea11

Please sign in to comment.