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