fix for Smarty 5

This commit is contained in:
2025-11-08 22:14:09 +05:00
parent bf8c7f81b2
commit 6de4c5101d

View File

@@ -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 . "'
");