ApiHelp: Avoid header for example, when there no examples
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 26 May 2013 18:48:17 +0000 (20:48 +0200)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 28 May 2013 15:37:41 +0000 (15:37 +0000)
commit2d9b71818f61262237fc46110c229d864e265a86
tree2e35eb8e15fa28260ce57866283223217f08e043
parent166480799d4db612dacdf783541ef2dc4e73ed1c
ApiHelp: Avoid header for example, when there no examples

When writing a new extension the source:

public function getExamples() {
return array(
//TODO
);
}

would produce a empty "Example:" header on the help page. Avoid this, by
changing the condition to check for truthy instead of false and empty
string.

Change-Id: I67ecacbbac66b97ed96412abf79b49aebe0ebdbf
includes/api/ApiBase.php