Skip to content

Commit

Permalink
Updating plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoxavier committed Feb 27, 2020
1 parent 1299a24 commit 349105a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Templates/Containers/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</tr>

<?php
$types = defined('DOCUMENT_TYPE_BY_PAYMENT') ? json_decode(DOCUMENT_TYPE_BY_PAYMENT ?? [], true) : [];
$types = defined('DOCUMENT_TYPE_BY_PAYMENT') ? json_decode(DOCUMENT_TYPE_BY_PAYMENT ?? '[]', true) : [];
foreach (WC()->payment_gateways()->payment_gateways() as $gateway):
$selected = array_key_exists($gateway->id, $types) ? $types[$gateway->id] : null;
?>
Expand Down

0 comments on commit 349105a

Please sign in to comment.