Skip to content

Commit

Permalink
Merge pull request #1409 from angelleye/PFW-66
Browse files Browse the repository at this point in the history
Random Warning, PFW-66
  • Loading branch information
kcppdevelopers committed Jan 29, 2020
2 parents a42c074 + ac65c71 commit a436657
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ public function __construct() {
$this->testmode = 'yes' === $this->testmode_value;
$this->billing_address_value = !empty($this->setting['billing_address']) ? $this->setting['billing_address'] : 'no';
// Globale setting
$this->disallowed_funding_methods = !empty($this->setting['disallowed_funding_methods']) ? $this->setting['disallowed_funding_methods'] : array();
$this->disallowed_funding_methods = !empty($this->setting['disallowed_funding_methods']) ? (array) $this->setting['disallowed_funding_methods'] : array();
if (!in_array('card', $this->disallowed_funding_methods)) {
$this->disallowed_card_types = !empty($this->setting['disallowed_card_types']) ? $this->setting['disallowed_card_types'] : array();
$this->disallowed_card_types = !empty($this->setting['disallowed_card_types']) ? (array) $this->setting['disallowed_card_types'] : array();
$this->disallowed_funding_methods = array_merge($this->disallowed_card_types, $this->disallowed_funding_methods);
}
$this->button_size = !empty($this->setting['button_size']) ? $this->setting['button_size'] : 'small';
Expand Down

0 comments on commit a436657

Please sign in to comment.