fix for Smarty 5
This commit is contained in:
@@ -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 . "'
|
||||
");
|
||||
|
||||
Reference in New Issue
Block a user