Skip to content

Commit

Permalink
Update service_provider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fmido88 authored Sep 27, 2024
1 parent eeae69d commit e70a13d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/payment/service_provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function get_payable(string $paymentarea, int $itemid): \core_paym
global $DB, $USER;

// Get the fake item in case of topping up the wallet.
$item = $DB->get_record('enrol_wallet_items', ['id' => $itemid], '*', MUST_EXIST);
$item = $DB->get_record('enrol_wallet_items', ['id' => $itemid], '*', IGNORE_MISSING);

if (!$item) {
// If the item is not found in enrol_wallet_items, try to get it from paygw_bank
Expand Down

0 comments on commit e70a13d

Please sign in to comment.