From: Marius Hoch Date: Mon, 15 Sep 2014 02:33:16 +0000 (+0200) Subject: Prevent "Notice: Undefined index" in ApiQuerySiteinfo X-Git-Tag: 1.31.0-rc.0~14020^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=01ca947a06ff62e8b00d43e0d45b28a117d8ea32;p=lhc%2Fweb%2Fwiklou.git Prevent "Notice: Undefined index" in ApiQuerySiteinfo $row['iw_trans'] wont be set if $wgInterwikiCache is used. Change-Id: Iea1041b9c699667c251442ed7f4c95e3ba550e7c --- diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index 522c7c0805..234360fdcd 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -399,7 +399,7 @@ class ApiQuerySiteinfo extends ApiQueryBase { if ( isset( $row['iw_local'] ) && $row['iw_local'] == '1' ) { $val['local'] = ''; } - if ( $row['iw_trans'] == '1' ) { + if ( isset( $row['iw_trans'] ) && $row['iw_trans'] == '1' ) { $val['trans'] = ''; }