commit
f1811c9181
@ -34,7 +34,10 @@
|
|||||||
* @param array formvars form var values
|
* @param array formvars form var values
|
||||||
*/
|
*/
|
||||||
function smarty_validate_criteria_notEmpty($value, $empty, &$params, &$formvars) {
|
function smarty_validate_criteria_notEmpty($value, $empty, &$params, &$formvars) {
|
||||||
return strlen($value) > 0;
|
if(empty($value)) {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return strlen($value) > 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -298,6 +298,7 @@ class StringParser {
|
|||||||
$this->_parsing = true;
|
$this->_parsing = true;
|
||||||
$this->_text = $this->_applyPrefilters($text);
|
$this->_text = $this->_applyPrefilters($text);
|
||||||
$this->_output = null;
|
$this->_output = null;
|
||||||
|
$this->_text = $this->_text ?? '';
|
||||||
$this->_length = strlen($this->_text);
|
$this->_length = strlen($this->_text);
|
||||||
$this->_cpos = 0;
|
$this->_cpos = 0;
|
||||||
unset($this->_stack);
|
unset($this->_stack);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user