Update validate_criteria.notEmpty.php
This commit is contained in:
parent
9577b51aca
commit
8c2d819fa2
@ -36,7 +36,7 @@
|
|||||||
function smarty_validate_criteria_notEmpty($value, $empty, &$params, &$formvars) {
|
function smarty_validate_criteria_notEmpty($value, $empty, &$params, &$formvars) {
|
||||||
// Return a message if value is empty
|
// Return a message if value is empty
|
||||||
if(empty($value)) {
|
if(empty($value)) {
|
||||||
echo "Smarty plugin: value is empty!";
|
echo "Smarty plugin: value is empty!\n";
|
||||||
} else {
|
} else {
|
||||||
return strlen($value) > 0;
|
return strlen($value) > 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user