Skip to content

Commit

Permalink
[#3135] - Another correction
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Feb 4, 2020
1 parent 29a99cc commit 60acc20
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions phalcon/Http/Request.zep
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,7 @@ class Request extends AbstractInjectionAware implements RequestInterface
let language = this->getBestLanguage(),
language = explode("-", language);

if isset language[0] {
return language[0];
} else {
return "";
}
return language[0];
}

/**
Expand Down

0 comments on commit 60acc20

Please sign in to comment.