From b1972f3110360558d37b813a842fafff8a70abb0 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sat, 12 Oct 2019 10:40:22 +0200 Subject: [PATCH] Run executeGenderCacheFromResultWrapper with titles in prop=linkshere The gender information are only needed when outputting titles, in other cases (when only pageids are selected) it results in a undefined property Bug: T235316 Follow-Up: I911dcb160a7b169091b9e8f66fb3908d0f2a1ba4 Change-Id: I5c9a501919914afd38343551c755126c98d457e6 --- includes/api/ApiQueryBacklinksprop.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiQueryBacklinksprop.php b/includes/api/ApiQueryBacklinksprop.php index 022fd9b848..31de7d003a 100644 --- a/includes/api/ApiQueryBacklinksprop.php +++ b/includes/api/ApiQueryBacklinksprop.php @@ -286,7 +286,9 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase { $res = $this->select( __METHOD__ ); if ( is_null( $resultPageSet ) ) { - $this->executeGenderCacheFromResultWrapper( $res, __METHOD__ ); + if ( $fld_title ) { + $this->executeGenderCacheFromResultWrapper( $res, __METHOD__ ); + } $count = 0; foreach ( $res as $row ) { -- 2.20.1