Output wikiid/api in meta=siteinfo only when non-empty
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 30 Jan 2015 19:12:33 +0000 (20:12 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Fri, 30 Jan 2015 19:12:33 +0000 (20:12 +0100)
commit8d47b4f373fd4a3260ca86e18b8a9629017ca42f
tree731d1ee05f34911d01a002e98d48ce28b1a88ea4
parent3a9d35a8622dcbaed576913b6d6aa609db2d0828
Output wikiid/api in meta=siteinfo only when non-empty

When using interwiki data from the database the value for iw_wikiid and
iw_api maybe empty strings, because the database does not allow NULL
here.
Suppress the output of the attribute in that case, because there are not
useful.
This should not break clients, because using .cdb (like WMF wikis)
already missing these attributes in the result.

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