Do not use false for condition on IDatabase::selectField

It results in a log entry in Database::selectSQLText

Change-Id: I95313cb375851d53353e9629c43f730d1c96c85f
This commit is contained in:
Umherirrender 2019-12-09 19:49:51 +01:00
parent 422b1f743d
commit beae7d6b19

View file

@ -318,7 +318,7 @@ class SpecialInterwiki extends SpecialPage {
if ( $wgInterwikiCentralDB !== null && $wgInterwikiCentralDB !== wfWikiID() ) {
// Fetch list from global table
$dbrCentralDB = wfGetDB( DB_REPLICA, [], $wgInterwikiCentralDB );
$res = $dbrCentralDB->select( 'interwiki', '*', false, __METHOD__ );
$res = $dbrCentralDB->select( 'interwiki', '*', [], __METHOD__ );
$retval = [];
foreach ( $res as $row ) {
$row = (array)$row;
@ -337,7 +337,7 @@ class SpecialInterwiki extends SpecialPage {
if ( $usingGlobalLanguages ) {
// Fetch list from global table
$dbrCentralLangDB = wfGetDB( DB_REPLICA, [], $wgInterwikiCentralInterlanguageDB );
$res = $dbrCentralLangDB->select( 'interwiki', '*', false, __METHOD__ );
$res = $dbrCentralLangDB->select( 'interwiki', '*', [], __METHOD__ );
$retval2 = [];
foreach ( $res as $row ) {
$row = (array)$row;