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