fix for Smarty 5
This commit is contained in:
@@ -494,7 +494,7 @@ function _cleanvar($var)
|
||||
*/
|
||||
function _parse_tag_fld_post ($matches)
|
||||
{
|
||||
return $_POST['form-' . $this->form['alias_id']][$matches[1]];
|
||||
return $_POST['form-' . $this->form['alias_id']][$matches[1]] ?? '';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -518,7 +518,7 @@ function _cleanvar($var)
|
||||
$alias_id = $this->form['alias_id'];
|
||||
|
||||
$fld_val = $this->form['is_submited']
|
||||
? $this->_stripslashes($_POST['form-' . $alias_id][$field_id])
|
||||
? $this->_stripslashes($_POST['form-' . $alias_id][$field_id] ?? null)
|
||||
: (in_array($field['type'],array('input','textarea'))
|
||||
? $this->_eval2var('?>' . $field['defaultval'] . '<?')
|
||||
: $field['defaultval']);
|
||||
|
||||
Reference in New Issue
Block a user