diff --git a/app/code/community/PedroTeixeira/Correios/Model/Carrier/CorreiosMethod.php b/app/code/community/PedroTeixeira/Correios/Model/Carrier/CorreiosMethod.php index 323daaf..6559ada 100644 --- a/app/code/community/PedroTeixeira/Correios/Model/Carrier/CorreiosMethod.php +++ b/app/code/community/PedroTeixeira/Correios/Model/Carrier/CorreiosMethod.php @@ -757,6 +757,9 @@ protected function _removeInvalidServices() protected function _addPostMethods($cServico) { $addMethods = $this->getConfigData("add_postmethods"); + if (empty($addMethods) || !is_array($addMethods)) { + return $cServico; + } foreach ($addMethods as $configData) { $isValid = true; $isValid &= $this->_packageWeight >= $configData['from']['weight'];