diff --git a/modules/dateofdelivery/dateofdelivery.php b/modules/dateofdelivery/dateofdelivery.php index d0a3d7cc9..d8a3131bc 100644 --- a/modules/dateofdelivery/dateofdelivery.php +++ b/modules/dateofdelivery/dateofdelivery.php @@ -102,7 +102,7 @@ class DateOfDelivery extends Module public function hookBeforeCarrier($params) { - if (!count($params['delivery_option_list'])) + if (!isset($params['delivery_option_list']) || !count($params['delivery_option_list'])) return false; $package_list = $params['cart']->getPackageList();