Skip to content

Commit

Permalink
Merge PR #328 from @zonky2
Browse files Browse the repository at this point in the history
Fix PHP 8 warning
  • Loading branch information
Stefan Heimes authored and Stefan Heimes committed Dec 2, 2024
2 parents 671c12e + 886e404 commit 79bdd9d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/DcGeneral/Dca/Builder/DataDefinitionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of contao-community-alliance/dc-general.
*
* (c) 2013-2015 Contao Community Alliance.
* (c) 2013-2023 Contao Community Alliance.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -15,7 +15,8 @@
* @author Tristan Lins <[email protected]>
* @author David Molineus <[email protected]>
* @author Stefan Heimes <[email protected]>
* @copyright 2013-2015 Contao Community Alliance.
* @author Ingolf Steinhardt <[email protected]>
* @copyright 2013-2023 Contao Community Alliance.
* @license https://github.com/contao-community-alliance/dc-general/blob/master/LICENSE LGPL-3.0
* @filesource
*/
Expand Down Expand Up @@ -76,7 +77,7 @@ public function build(ContainerInterface $container, BuildDataDefinitionEvent $e

// Check if we have to force the diff.
if (
($groupRightForceDiff == true || (\is_array($groupRightForceDiff) && $groupRightForceDiff[0] == true))
($groupRightForceDiff == true || (\is_array($groupRightForceDiff) && !empty($groupRightForceDiff[0])))
&& $palettesDefinition
&& $palettesDefinition->hasLegend('table')
&& $palettesDefinition->getLegend('table')->hasProperty('database_pages_check')
Expand Down

0 comments on commit 79bdd9d

Please sign in to comment.