Don't return invalid XML from paraminfo when one of parameter values is null
authorPetr Onderka <gsvick@gmail.com>
Wed, 23 Jan 2013 20:55:39 +0000 (21:55 +0100)
committerPetr Onderka <gsvick@gmail.com>
Thu, 24 Jan 2013 10:39:05 +0000 (11:39 +0100)
commitdeaffd82628e96aa6a0762e893bf797c591b0413
tree371a5bd15ed8412536596cee36b58885eb61bb02
parent0b3686a281b252787db8eed0b5a343d88cb829c8
Don't return invalid XML from paraminfo when one of parameter values is null

The module setglobalaccountstatus currently has null
as one of the values for one of its parameters,
which causes paraminfo to return invalid XML (unclosed tag).

I believe values shouldn't be null, but paraminfo
shouldn't return invalid XML even when they are.

This problem occured only with values that go into element content,
those that are rendered as attributes were already fine.

This change modifies ApiFormatXml, so it affects all modules.

Change-Id: Ibf5c329e7bfa375b06f0976ebb9e449f2cb1c927
includes/api/ApiFormatXml.php