From 6d8cee47d6a0dd8cc19f3f627722379b23345c80 Mon Sep 17 00:00:00 2001 From: blackcoder87 Date: Wed, 27 Nov 2024 19:18:11 +0100 Subject: [PATCH] Teams: Fix argument not int in teams view (#1123) --- application/modules/teams/config/config.php | 2 +- application/modules/teams/views/index/index.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/modules/teams/config/config.php b/application/modules/teams/config/config.php index 1ff096c76..9bc2af743 100644 --- a/application/modules/teams/config/config.php +++ b/application/modules/teams/config/config.php @@ -13,7 +13,7 @@ class Config extends \Ilch\Config\Install { public $config = [ 'key' => 'teams', - 'version' => '1.24.1', + 'version' => '1.24.2', 'icon_small' => 'fa-solid fa-users', 'author' => 'Veldscholten, Kevin', 'link' => 'https://ilch.de', diff --git a/application/modules/teams/views/index/index.php b/application/modules/teams/views/index/index.php index 707a6f155..2a78d3fb5 100644 --- a/application/modules/teams/views/index/index.php +++ b/application/modules/teams/views/index/index.php @@ -34,8 +34,8 @@
getUsersForGroup($team->getGroupId()); - $leaderIds = explode(',', $team->getLeader()); - $coLeaderIds = explode(',', $team->getCoLeader()); + $leaderIds = $team->getLeader() ? explode(',', $team->getLeader()) : []; + $coLeaderIds = $team->getCoLeader() ? explode(',', $team->getCoLeader()) : []; $groupList = array_unique(array_merge($leaderIds, $coLeaderIds, $groupList)); ?>