From 90adc03ea57c23e612ec129b140e702c27950342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20L=C3=B6ffler?= Date: Fri, 16 Mar 2018 11:16:51 +0100 Subject: [PATCH] [TASK] Make LinkServiceTest notice free Resolves: #84328 Releases: master Change-Id: I2e8ae22db7c3e9853d6ae59d6c42f960001d5e74 Reviewed-on: https://review.typo3.org/56207 Tested-by: TYPO3com Reviewed-by: Anja Leichsenring Tested-by: Anja Leichsenring Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn --- typo3/sysext/core/Classes/LinkHandling/LinkService.php | 2 +- .../sysext/core/Tests/Unit/LinkHandling/LinkServiceTest.php | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/typo3/sysext/core/Classes/LinkHandling/LinkService.php b/typo3/sysext/core/Classes/LinkHandling/LinkService.php index 9e0e92427b4a..c89e04bb2745 100644 --- a/typo3/sysext/core/Classes/LinkHandling/LinkService.php +++ b/typo3/sysext/core/Classes/LinkHandling/LinkService.php @@ -50,7 +50,7 @@ public function __construct() { if (!empty($GLOBALS['TYPO3_CONF_VARS']['SYS']['linkHandler'])) { foreach ($GLOBALS['TYPO3_CONF_VARS']['SYS']['linkHandler'] as $type => $handler) { - if (!is_object($this->handlers[$type])) { + if (!isset($this->handlers[$type]) || !is_object($this->handlers[$type])) { $this->handlers[$type] = GeneralUtility::makeInstance($handler); } } diff --git a/typo3/sysext/core/Tests/Unit/LinkHandling/LinkServiceTest.php b/typo3/sysext/core/Tests/Unit/LinkHandling/LinkServiceTest.php index 094e69d6d33c..9cb91d27cc8e 100644 --- a/typo3/sysext/core/Tests/Unit/LinkHandling/LinkServiceTest.php +++ b/typo3/sysext/core/Tests/Unit/LinkHandling/LinkServiceTest.php @@ -1,4 +1,5 @@