Skip to content

Commit

Permalink
enclosed conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulwahidsharief committed Dec 24, 2024
1 parent 34b8341 commit 38bbc8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions woo-razorpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,13 +382,13 @@ public function process_admin_options()
{
if ($c360Field === 'enable_razorpay_trusted_business_widget')
{
if (isset($data[$this->plugin_id . $this->id . '_' . $c360Field]) === true and
(empty(get_option('rzp_rtb_enable')) === true) or (get_option('rzp_rtb_enable') === 'no'))
if ((isset($data[$this->plugin_id . $this->id . '_' . $c360Field]) === true) and
((empty(get_option('rzp_rtb_enable')) === true) or (get_option('rzp_rtb_enable') === 'no')))
{
$this->toggleRtbWidget('activate' , true);
}
elseif (isset($data[$this->plugin_id . $this->id . '_' . $c360Field]) === false and
get_option('rzp_rtb_enable') === 'yes')
elseif ((isset($data[$this->plugin_id . $this->id . '_' . $c360Field]) === false) and
(get_option('rzp_rtb_enable') === 'yes'))
{
$this->toggleRtbWidget('deactivate' , false);
}
Expand Down

0 comments on commit 38bbc8b

Please sign in to comment.