Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fmido88 authored Jul 10, 2023
1 parent 4eea0a0 commit 8239d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/transactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public static function get_user_balance($userid) {
} else if ($source == self::SOURCE_MOODLE) {

// Get the balance from the last transaction.
$record = $DB->get_records('enrol_wallet_transactions', ['userid' => $userid], 'id DESC', 'balance', 0, 1);
$record = $DB->get_records('enrol_wallet_transactions', ['userid' => $userid], 'timecreated DESC,id DESC', 'balance', 0, 1);

// Getting the balance from last transaction.
$key = array_key_first($record);
Expand Down

0 comments on commit 8239d88

Please sign in to comment.