Skip to content

Commit

Permalink
Fix PHP 8 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zonky2 committed Jul 20, 2022
1 parent 41fe530 commit 6ae8741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Contao/Widget/FormMultiColumnWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
use Contao\CoreBundle\Exception\ResponseException;
use Contao\Input;
use MenAtWork\MultiColumnWizardBundle\Contao\Widgets\MultiColumnWizard;
use Symfony\Contracts\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Response;

class FormMultiColumnWizard extends MultiColumnWizard
{
Expand Down Expand Up @@ -94,7 +94,7 @@ public function generate($overwriteRowCurrentRow = null, $onlyRows = false)
protected function initializeWidget(&$arrField, $intRow, $strKey, $varValue)
{
// If null replace it with an empty string.
if ($varValue == '' && $arrField['default'] == null) {
if ($varValue == '' && isset($arrField['default']) && $arrField['default'] == null) {
$arrField['default'] = '';
}

Expand Down

0 comments on commit 6ae8741

Please sign in to comment.