From 6e0e86ced292831df616c0884d35272ddc0f6d4a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 28 Sep 2016 11:28:15 +0200 Subject: [PATCH] avoid Warning when importing not yet created infolog-types --- infolog/inc/class.infolog_bo.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infolog/inc/class.infolog_bo.inc.php b/infolog/inc/class.infolog_bo.inc.php index b301b54d78..feeb6b7523 100644 --- a/infolog/inc/class.infolog_bo.inc.php +++ b/infolog/inc/class.infolog_bo.inc.php @@ -760,7 +760,8 @@ class infolog_bo // Make sure status is still valid if the type changes if($old['info_type'] != $values['info_type'] && $values['info_status']) { - if(!in_array($values['info_status'], array_keys($this->status[$values['info_type']]))) + if (isset($this->status[$values['info_type']]) && + !in_array($values['info_status'], array_keys($this->status[$values['info_type']]))) { $values['info_status'] = $this->status['defaults'][$values['info_type']]; }