From 57df0ac7013a7ef28afa3b9ea2ddf8df0aaec2ff Mon Sep 17 00:00:00 2001
From: Oliver Hader <oliver@typo3.org>
Date: Fri, 15 Dec 2017 16:58:03 +0100
Subject: [PATCH] [BUGFIX] AdminPanelView tries to count null value

Resolves: #83345
Releases: master, 8.7, 7.6
Change-Id: I49e0de26154430c8a93c6a25a7fa54d5e49be39d
Reviewed-on: https://review.typo3.org/55102
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
---
 typo3/sysext/frontend/Classes/View/AdminPanelView.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/frontend/Classes/View/AdminPanelView.php b/typo3/sysext/frontend/Classes/View/AdminPanelView.php
index 251c34ce9ec2..a8516ba2d8de 100644
--- a/typo3/sysext/frontend/Classes/View/AdminPanelView.php
+++ b/typo3/sysext/frontend/Classes/View/AdminPanelView.php
@@ -554,7 +554,7 @@ class AdminPanelView
             $tableArr[] = [$this->extGetLL('info_type'), $tsfe->type];
             $tableArr[] = [$this->extGetLL('info_groupList'), $tsfe->gr_list];
             $tableArr[] = [$this->extGetLL('info_noCache'), $this->extGetLL('info_noCache_' . ($tsfe->no_cache ? 'no' : 'yes'))];
-            $tableArr[] = [$this->extGetLL('info_countUserInt'), count($tsfe->config['INTincScript'])];
+            $tableArr[] = [$this->extGetLL('info_countUserInt'), isset($tsfe->config['INTincScript']) && is_array($tsfe->config['INTincScript']) ? count($tsfe->config['INTincScript']) : 0];
 
             if (!empty($tsfe->fe_user->user['uid'])) {
                 $tableArr[] = [$this->extGetLL('info_feuserName'), htmlspecialchars($tsfe->fe_user->user['username'])];
-- 
GitLab