[BUGFIX] AdminPanelView tries to count null value 02/55102/3
authorOliver Hader <oliver@typo3.org>
Fri, 15 Dec 2017 15:58:03 +0000 (16:58 +0100)
committerAlexander Opitz <opitz.alexander@googlemail.com>
Mon, 18 Dec 2017 17:39:46 +0000 (18:39 +0100)
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

index 251c34c..a8516ba 100644 (file)
@@ -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'])];