Changeset 467 for branches/eli_branch/lib/FormValidator.inc.php
- Timestamp:
- Feb 19, 2014 2:28:00 AM (10 years ago)
- Location:
- branches/eli_branch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eli_branch
-
branches/eli_branch/lib/FormValidator.inc.php
r450 r467 481 481 $app->logMsg(sprintf('The email address %s is not valid.', oTxt($email)), LOG_DEBUG, __FILE__, __LINE__); 482 482 return false; 483 break;484 483 485 484 case parent::EMAIL_LENGTH_FAIL : … … 488 487 $app->logMsg(sprintf('The email address %s must contain less than 256 characters.', oTxt($email)), LOG_DEBUG, __FILE__, __LINE__); 489 488 return false; 490 break;491 489 492 490 case parent::EMAIL_MX_FAIL : … … 495 493 $app->logMsg(sprintf('The email address %s does not have a valid domain name.', oTxt($email)), LOG_INFO, __FILE__, __LINE__); 496 494 return false; 497 break;498 495 499 496 case parent::EMAIL_SUCCESS : 500 497 default : 501 498 return true; 502 break;503 499 } 504 500 } … … 535 531 $app =& App::getInstance(); 536 532 537 if (parent::validateStrDate(getFormData($form_name ))) {533 if (parent::validateStrDate(getFormData($form_name, ''))) { 538 534 return true; 539 535 } else {
Note: See TracChangeset
for help on using the changeset viewer.