Invoice.php - Fix undefined error

This commit is contained in:
Marcus Hill 2025-08-16 14:30:37 +01:00
parent 559e0c6350
commit 7ae7b8904c
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ if (isset($_GET['invoice_id'])) {
<?php } // End Payment Provider Enable Check ?>
</div>
<?php if ($invoice_status !== 'Partial' && $config_stripe_enable && $stripe_id && $stripe_pm) { ?>
<?php if ($invoice_status !== 'Partial' && $config_stripe_enable && !empty($stripe_id) && !empty($stripe_pm)) { ?>
<a class="btn btn-primary confirm-link" href="post.php?add_payment_stripe&invoice_id=<?php echo $invoice_id; ?>&csrf_token=<?php echo $_SESSION['csrf_token']; ?>">
<i class="fa fa-fw fa-credit-card mr-2"></i>Pay via Payment Provider
</a>