diff --git a/includes/api/ApiTemplateData.php b/includes/api/ApiTemplateData.php index 319b3a59..33d22469 100644 --- a/includes/api/ApiTemplateData.php +++ b/includes/api/ApiTemplateData.php @@ -112,7 +112,7 @@ class ApiTemplateData extends ApiBase { ); } - if ( $langCode ) { + if ( $langCode !== false ) { $data = $tdb->getDataInLanguage( $langCode ); } else { $data = $tdb->getData();