How to fix the error?

Hello! Got the following error:
2020-01-06 19:13:46 - PHP Notice: Undefined index: in /var/www/data/www/catalog/controller/feed/yandex_yml.php on line 345

2020-01-06 19:13:46 - PHP Notice: Undefined index: order-before in /var/www/data/www/catalog/controller/feed/yandex_yml.php on line 1241

elseif ($product[$this->config->get($this->CONFIG_PREFIX.'barcode_field')]) {
 $delivery_cost = $product[$this->config->get($this->CONFIG_PREFIX.'barcode_field')];

$retval = '<delivery-options><option cost="'.$delivery_option['cost'].'" days="'.$delivery_option['days'].'" order-before="'.$delivery_option['order-before'].'"'
 .(isset($delivery_option['before']) ? ' order-before="'.$delivery_option['before'].'"' : ").' /></delivery-options>' . $this->eol;

Whole file:

How to fix?
April 4th 20 at 00:58
2 answers
April 4th 20 at 01:00
Just turn off displaying of errors
April 4th 20 at 01:02
On this is therefore need to accept and live with it))))))
here it is necessary to check for array_key_exists (isset) and/or advance to intelliservice value.
most likely the module is designed for a different version or build of opencart and there aren't enough fields in the database

Find more questions by tags PHP