Skip to content

Commit

Permalink
fix bug for content element article
Browse files Browse the repository at this point in the history
  • Loading branch information
benfolds committed Jun 28, 2024
1 parent e835bcc commit 0502271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/contao/classes/HelperClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function addClassesToArticle($objRow)
//public function addClassesToElement($objRow, $strBuffer, $objElement)
public function addClassesToElement(ContentModel $contentModel, string $buffer, $element)
{
$cssId = unserialize($contentModel->cssID)[1];
$cssId = (is_array(unserialize($contentModel->cssID))) ? unserialize($contentModel->cssID)[1] : '';
$classes = 'content-' . $contentModel->type . ((empty($cssId)) ? '' : ' ' . $cssId);

if (!is_array($arrCustom = unserialize($contentModel->customClass))) return $buffer;
Expand Down

0 comments on commit 0502271

Please sign in to comment.