From: Umherirrender Date: Sat, 12 Oct 2019 08:40:22 +0000 (+0200) Subject: Run executeGenderCacheFromResultWrapper with titles in prop=linkshere X-Git-Tag: 1.34.0-rc.0~2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=b1972f3110360558d37b813a842fafff8a70abb0 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 --- 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 ) {