X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPageProps.php;h=a84370f8774eceff420b49c235f28d972e682e65;hb=3599ce72b0fe2594bd3ae8c902555040b8a91d28;hp=df2451c3a5ffeeffbf866c615c89572af552202a;hpb=d23c700ef7c58b92869aaf76e82cb801280e36d0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/PageProps.php b/includes/PageProps.php index df2451c3a5..a84370f877 100644 --- a/includes/PageProps.php +++ b/includes/PageProps.php @@ -129,12 +129,10 @@ class PageProps { if ( $propertyValue === false ) { $queryIDs[] = $pageID; break; + } elseif ( $gotArray ) { + $values[$pageID][$propertyName] = $propertyValue; } else { - if ( $gotArray ) { - $values[$pageID][$propertyName] = $propertyValue; - } else { - $values[$pageID] = $propertyValue; - } + $values[$pageID] = $propertyValue; } } }