Check for existence of iw_local in Interwiki::getAllPrefixes
authorBryan Davis <bd808@wikimedia.org>
Fri, 22 Aug 2014 02:24:25 +0000 (20:24 -0600)
committerBryan Davis <bd808@wikimedia.org>
Fri, 22 Aug 2014 02:24:25 +0000 (20:24 -0600)
commit9cd7d691cbf6b05f9a263d250850f7e221389093
tree5476ea5177dcaf76346a4ae7aa517a2c0f429db1
parenta52bb899c5dc47316e9ed4209b0ded994f7cbf27
Check for existence of iw_local in Interwiki::getAllPrefixes

Interwiki::getAllPrefixes only sets the iw_local member in a response
row if $local is set to a non-null value. Under certain error
reporting conditions, the unqualified access to the array key leads to
warnings such as "message repeated 1471 times: [ #012Notice: Undefined
index: iw_trans in ...".

Change-Id: Ibf434dc9c362984cad76ae6bdb29de826974d81e
includes/api/ApiQuerySiteinfo.php