X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPageProps.php;h=a84370f8774eceff420b49c235f28d972e682e65;hb=616525021b3691e30a980a42b837b7ad44ecfd09;hp=df2451c3a5ffeeffbf866c615c89572af552202a;hpb=7b239a1ac1cb6685eb22c2543b0d80d85df80692;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; } } }