From 5c40834db079c7483d4bbd1f0f98f5a4fdfdb379 Mon Sep 17 00:00:00 2001 From: Rodney Figaro Date: Fri, 24 Feb 2017 15:20:59 +0100 Subject: [PATCH] fix unchecked variable astf_secure_key in sendtoafriend-extra.tpl --- modules/advsendtoafriend/sendtoafriend-extra.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/advsendtoafriend/sendtoafriend-extra.tpl b/modules/advsendtoafriend/sendtoafriend-extra.tpl index cc294301..cc414467 100755 --- a/modules/advsendtoafriend/sendtoafriend-extra.tpl +++ b/modules/advsendtoafriend/sendtoafriend-extra.tpl @@ -16,7 +16,7 @@ $('document').ready(function(){ {/literal}url: "{$module_dir}sendtoafriend_ajax.php",{literal} type: "POST", 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", success: function(result) { $.fancybox.close();