Skip to content

Instantly share code, notes, and snippets.

@torunar
Created January 14, 2021 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torunar/04a3c6fa9f7198b0aadc60ad3da067e6 to your computer and use it in GitHub Desktop.
Save torunar/04a3c6fa9f7198b0aadc60ad3da067e6 to your computer and use it in GitHub Desktop.
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