Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
Reduce unnecessary loops on InvoicePaid if match is found
Browse files Browse the repository at this point in the history
Thanks @baonq-me for the suggestion!
  • Loading branch information
dylanhansch committed May 6, 2019
1 parent 00518b6 commit 405cfe0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/addons/order_management/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@
if ($acceptOrderResults['result'] != 'success') {
logActivity('[Order Management] An error occured accepting order ' . $orderID . ': ' . $acceptOrderResults['result']);
}

// Reduce unnecessary loops
break;
}
}
} else {
Expand Down

0 comments on commit 405cfe0

Please sign in to comment.