Created
January 14, 2021 13:37
-
-
Save torunar/04a3c6fa9f7198b0aadc60ad3da067e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/functions/fn.cart.php b/app/functions/fn.cart.php | |
index b055080a93..5d3761e8e7 100644 | |
--- a/app/functions/fn.cart.php | |
+++ b/app/functions/fn.cart.php | |
@@ -2661,7 +2661,7 @@ function fn_change_order_status($order_id, $status_to, $status_from = '', $force | |
new OrderProvider($order_info) | |
); | |
if ($edp_data) { | |
- $notification_rules = fn_get_edp_notification_rules($force_notification, $edp_data); | |
+ $notification_rules = fn_get_edp_notification_rules($force_notification ?: [], $edp_data); | |
$event_dispatcher->dispatch( | |
'order.edp', | |
['order_info' => $order_info, 'edp_data' => $edp_data], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment