Skip to content

Commit df02f05

Browse files
committed
Fix PHP 8.2 deprecation error
1 parent 79a4c4c commit df02f05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wcmf/lib/model/NodeUtil.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public static function getDisplayValues(Node $node, $language=null) {
168168

169169
$displayArray = [];
170170
$displayValuesNames = $node->getProperty('displayValues');
171-
if (sizeof($displayValuesNames) > 0) {
171+
if ($displayValuesNames && sizeof($displayValuesNames) > 0) {
172172
$mapper = $node->getMapper();
173173
foreach($displayValuesNames as $displayValueName) {
174174
$inputType = ''; // needed for the translation of a list value

0 commit comments

Comments
 (0)