Skip to content

Commit

Permalink
small bugfix for strict testing in PHP8
Browse files Browse the repository at this point in the history
  • Loading branch information
markusmilkereit committed Mar 21, 2023
1 parent 0fc5a5a commit 82ec2d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hooks/AddStyles.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AddStyles
*/
public function generatePage(PageModel $pageModel, LayoutModel $layout, PageRegular $pageRegular)
{
if (!is_array($GLOBALS['TL_CSS']))
if (!isset($GLOBALS['TL_CSS']) || !is_array($GLOBALS['TL_CSS']))
{
$GLOBALS['TL_CSS'] = array();
}
Expand Down

0 comments on commit 82ec2d7

Please sign in to comment.