From 3c1addcc1bba3bd452fd4100f2e65042ae04a398 Mon Sep 17 00:00:00 2001 From: Repellent Date: Thu, 13 Nov 2025 08:09:45 +0500 Subject: [PATCH] fix for Smarty 5 --- forms/class/forms.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forms/class/forms.php b/forms/class/forms.php index f849052..e2dfa1a 100644 --- a/forms/class/forms.php +++ b/forms/class/forms.php @@ -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'] . '