From: Sam Reed Date: Sat, 31 Dec 2011 00:22:37 +0000 (+0000) Subject: Followup r107393, treat '' the same as getting false from getExamples, the default... X-Git-Tag: 1.31.0-rc.0~25663 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=4024f986bdf7a82d3694f1dd8704a3d7a3876917;p=lhc%2Fweb%2Fwiklou.git Followup r107393, treat '' the same as getting false from getExamples, the default if it's not overridden --- diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index efca658188..992105ee98 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -268,7 +268,7 @@ abstract class ApiBase extends ContextSource { } $examples = $this->getExamples(); - if ( $examples !== false ) { + if ( $examples !== false && $examples !== '' ) { if ( !is_array( $examples ) ) { $examples = array( $examples