fix unchecked variable astf_secure_key in sendtoafriend-extra.tpl

This commit is contained in:
Rodney Figaro 2017-02-24 15:20:59 +01:00
parent 3882a42da1
commit 5c40834db0

View File

@ -16,7 +16,7 @@ $('document').ready(function(){
{/literal}url: "{$module_dir}sendtoafriend_ajax.php",{literal} {/literal}url: "{$module_dir}sendtoafriend_ajax.php",{literal}
type: "POST", type: "POST",
headers: {"cache-control": "no-cache"}, headers: {"cache-control": "no-cache"},
data: {action: 'sendToMyFriend', secure_key: '{/literal}{$astf_secure_key}{literal}', name: name, email: email, id_product: id_product},{/literal}{literal} data: {action: 'sendToMyFriend', secure_key: '{/literal}{if isset($astf_secure_key)}{$astf_secure_key}{/if}{literal}', name: name, email: email, id_product: id_product},{/literal}{literal}
dataType: "json", dataType: "json",
success: function(result) { success: function(result) {
$.fancybox.close(); $.fancybox.close();