Update validate_criteria.notEmpty.php
This commit is contained in:
parent
672f498cf6
commit
4ce8fb3ea9
@ -34,9 +34,8 @@
|
||||
* @param array formvars form var values
|
||||
*/
|
||||
function smarty_validate_criteria_notEmpty($value, $empty, &$params, &$formvars) {
|
||||
// Return a message if value is empty
|
||||
if(empty($value)) {
|
||||
echo "Smarty plugin: value is empty or null!\n";
|
||||
return false;
|
||||
} else {
|
||||
return strlen($value) > 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user