Fix title if language not set

This commit is contained in:
Kirill Kotikov 2020-03-22 21:43:37 +03:00 committed by GitHub
parent ec7ef8f502
commit 3ec32bb6c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -625,7 +625,9 @@ class GithubTrendingBridge extends BridgeAbstract {
}
public function getName(){
if(!is_null($this->getInput('language'))) {
if($this->getInput('language') == '') {
return self::NAME . ' - all';
} elseif (!is_null($this->getInput('language'))) {
return self::NAME . ' - ' . $this->getInput('language');
}