Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LalitChaudhary1 committed Jun 8, 2020
1 parent 254c52d commit 19dd6d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paytm-payments/woo-paytm.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function uninstall_paytm_plugin(){
* check cURL working or able to communicate with Paytm
* http://www.example.com/?paytm_action=curltest
*/
if(sanitize_text_field($_GET['paytm_action']) == "curltest"){
if(isset($_GET['paytm_action']) && sanitize_text_field($_GET['paytm_action']) == "curltest"){
add_action('the_content', 'curltest');
}

Expand Down Expand Up @@ -328,7 +328,7 @@ function woocommerce_add_paytm_gateway($methods) {
*/
load_plugin_textdomain('wc-paytm', false, dirname( plugin_basename( __FILE__ ) ) . '/languages');

if(sanitize_text_field($_GET['paytm_response'])){
if(isset($_GET['paytm_response']) && sanitize_text_field($_GET['paytm_response'])){
add_action('the_content', 'paytmResponseMessage');
}

Expand Down

0 comments on commit 19dd6d6

Please sign in to comment.