From 6de4c5101d04ff643122c2eb7492016cec52437a Mon Sep 17 00:00:00 2001 From: Repellent Date: Sat, 8 Nov 2025 22:14:09 +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 3eb86cb..cd851a1 100644 --- a/forms/class/forms.php +++ b/forms/class/forms.php @@ -892,7 +892,7 @@ function _cleanvar($var) return $AVE_Template->fetch($this->tpl_dir . 'form_fields.tpl'); } -/** + /** * Сохранение формы */ function form_save ($fid) @@ -939,7 +939,7 @@ function _cleanvar($var) code_onsubmit = '" . addslashes($_REQUEST['code_onsubmit']) . "', code_onvalidate = '" . addslashes($_REQUEST['code_onvalidate']) . "', code_onsend = '" . addslashes($_REQUEST['code_onsend']) . "', - code_beforesend = '" . addslashes($_REQUEST['code_beforesend']) . "' + code_beforesend = '" . addslashes(isset($_REQUEST['code_beforesend']) ? $_REQUEST['code_beforesend'] : '') . "' WHERE id = '" . $fid . "' ");