parent
d85dc9ae43
commit
a29052ba38
@ -34,7 +34,11 @@
|
||||
* @param array formvars form var values
|
||||
*/
|
||||
function smarty_validate_criteria_notEmpty($value, $empty, &$params, &$formvars) {
|
||||
return strlen($value) > 0;
|
||||
// Return a message if value is empty
|
||||
if(empty($value)) {
|
||||
echo "Smarty plugin: value is empty!";
|
||||
} else {
|
||||
return strlen($value) > 0;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -302,6 +302,7 @@ class StringParser {
|
||||
}
|
||||
$this->_text = $this->_applyPrefilters($text);
|
||||
$this->_output = null;
|
||||
$this->_text = $this->_text ?? '';
|
||||
$this->_length = strlen($this->_text);
|
||||
$this->_cpos = 0;
|
||||
unset($this->_stack);
|
||||
|
Loading…
x
Reference in New Issue
Block a user