Issue Bug Closed

#64314Frontend fails to properly unset labels

Tizian Schmidlin 01/16/15, 16:44 updated 02/11/16, 11:35

Description

Hello there,

when setting a label to empty ('') by typoscript, there will be a PHP fatal error for using a string as string offset.

How to reproduce:

plugin.tx_xx._LOCAL_LANG.x = 

Now you’ll have a fatal error on Line 904 of AbstractPlugin.php.

The reason is that it is checked if the label should be unset and then it isn’t tested again…

Here’s the fix for this.

File: typo3/sysext/fronted/Classes/Plugin/AbstractPlugin.php line 903
Copy-paste this on line 903 to fix the issue

if(isset($this->LOCAL_LANG_UNSET[$this->LLkey][$key])) {
    $word = '';
} else

Best Regards
Tizian

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.