contao/core — Issue #3830: 2.11.x - Empty CSS definition will break structure
Author: winanscreative
Created: 2012-01-19 22:06:25+00:00
State: open

If you happen to have a CSS selector set up with no style definitions, the code as it stands will chop off the opening bracket. You can see it happening here:

https://github.com/contao/core/blob/2.11.x/system/modules/backend/StyleSheets.php#L1033

Perhaps a check for a length on $return would do the trick, or eliminating the definition entirely....