Skip to content

Commit

Permalink
Fix PHP 8 warning (#29)
Browse files Browse the repository at this point in the history
Fix PHP 8 warning
  • Loading branch information
zonky2 authored Apr 5, 2023
1 parent 974a9be commit 57e0b78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EventListener/AjaxReloadElementListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
/**
* This file is part of richardhj/contao-ajax_reload_element.
*
* Copyright (c) 2016-2018 Richard Henkenjohann
* Copyright (c) 2016-2022 Richard Henkenjohann
*
* @package richardhj/contao-ajax_reload_element
* @author Richard Henkenjohann <richardhenkenjohann@googlemail.com>
* @copyright 2016-2018 Richard Henkenjohann
* @copyright 2016-2022 Richard Henkenjohann
* @license https://github.com/richardhj/contao-ajax_reload_element/blob/master/LICENSE LGPL-3.0
*/

Expand Down Expand Up @@ -144,7 +144,7 @@ public function onGetPageLayout($page, $layout)
$page->layoutId = $layout->id;
$page->template = $layout->template ?: 'fe_page';
$page->templateGroup = $theme->templates;
list($strFormat, $strVariant) = explode('_', $layout->doctype);
list($strFormat, $strVariant) = explode('_', $layout->doctype) + array(null, null);
$page->outputFormat = $strFormat;
$page->outputVariant = $strVariant;

Expand Down

0 comments on commit 57e0b78

Please sign in to comment.