Skip to content

Commit 72d41eb

Browse files
authored
Fix trying to access array offset on null
1 parent efa83ef commit 72d41eb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Element/GridStart.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Contao\CoreBundle\Controller\ContentElement\AbstractContentElementController;
2020
use Contao\CoreBundle\DependencyInjection\Attribute\AsContentElement;
2121
use Contao\CoreBundle\Routing\ScopeMatcher;
22+
use Contao\System;
2223
use Contao\Template;
2324
use Symfony\Component\HttpFoundation\Request;
2425
use Symfony\Component\HttpFoundation\RequestStack;
@@ -114,7 +115,8 @@ protected function getResponse(Template $template, ContentModel $model, Request
114115
*/
115116
private function getConfigInfo(ContentModel $model): string
116117
{
117-
118+
System::loadLanguageFile('tl_content');
119+
118120
$configInfo = '<span class="tl_help">';
119121

120122
$configInfo .= \sprintf(

0 commit comments

Comments
 (0)