X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWhatLinksHere.php;h=284008652617b61c7867f5c2a5ba0aa13852eb7e;hb=4051970d03686d0f05516659a35733cd5325eb37;hp=18c10bf706c2b20fb0dc6b5b0d5180b5d005e3b6;hpb=63591baccce89e34dddb6a6b227f4e024111327b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWhatLinksHere.php b/includes/specials/SpecialWhatLinksHere.php index 18c10bf706..2840086526 100644 --- a/includes/specials/SpecialWhatLinksHere.php +++ b/includes/specials/SpecialWhatLinksHere.php @@ -117,6 +117,7 @@ class SpecialWhatLinksHere extends IncludableSpecialPage { $fetchlinks = ( !$hidelinks || !$hideredirs ); // Build query conds in concert for all three tables... + $conds = []; $conds['pagelinks'] = [ 'pl_namespace' => $target->getNamespace(), 'pl_title' => $target->getDBkey(), @@ -229,6 +230,7 @@ class SpecialWhatLinksHere extends IncludableSpecialPage { // Read the rows into an array and remove duplicates // templatelinks comes second so that the templatelinks row overwrites the // pagelinks row, so we get (inclusion) rather than nothing + $rows = []; if ( $fetchlinks ) { foreach ( $plRes as $row ) { $row->is_template = 0;