[BUGFIX] Wrong variable checked in BrowseLinksController 91/51991/2
authorChrister Vindberg <cvi@systime.dk>
Thu, 9 Mar 2017 13:00:14 +0000 (14:00 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 10 Mar 2017 21:38:39 +0000 (22:38 +0100)
Changed so the correct variable classesAnchorDefaultTitle is checked.

In BrowseLinksController::getTitleField the wrong variable was checked,
which could cause faulty behaviour and an PHP warning since $title could
become null instead of the empty string.

Resolves: #80209
Releases: master
Change-Id: Ie2c82085438d0f0303d0d61ccb0a095ee37da338
Reviewed-on: https://review.typo3.org/51991
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/rte_ckeditor/Classes/Controller/BrowseLinksController.php

index 9eac2a0..7afe7fd 100644 (file)
@@ -444,7 +444,7 @@ class BrowseLinksController extends AbstractLinkBrowserController
         if ($this->linkAttributeValues['title']) {
             $title = $this->linkAttributeValues['title'];
         } else {
-            $title = !$this->classesAnchorDefault[$this->displayedLinkHandlerId] ? '' : $this->classesAnchorDefaultTitle[$this->displayedLinkHandlerId];
+            $title = !$this->classesAnchorDefaultTitle[$this->displayedLinkHandlerId] ? '' : $this->classesAnchorDefaultTitle[$this->displayedLinkHandlerId];
         }
         if (isset($this->buttonConfig[$this->displayedLinkHandlerId . '.']['properties.']['title.']['readOnly'])) {
             $readOnly = (bool)$this->buttonConfig[$this->displayedLinkHandlerId . '.']['properties.']['title.']['readOnly'];