From dd75857277cb6b00825f71c59f552fb7afd95deb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 10 Nov 2021 12:56:04 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: Illegal offset type in Api\Categories::id2name() --- infolog/inc/class.infolog_tracking.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infolog/inc/class.infolog_tracking.inc.php b/infolog/inc/class.infolog_tracking.inc.php index 972e378c41..32dcca7502 100644 --- a/infolog/inc/class.infolog_tracking.inc.php +++ b/infolog/inc/class.infolog_tracking.inc.php @@ -212,6 +212,10 @@ class infolog_tracking extends Api\Storage\Tracking { $id = ' #'.$data['info_id']; } + if (is_array($data['info_cat'])) + { + $data['info_cat'] = array_shift($data['info_cat']); + } foreach(array( 'info_type' => lang($this->infolog->enums['type'][$data['info_type']]).$id, 'info_from' => $data['info_from'],