diff --git a/phalcon/Http/Request.zep b/phalcon/Http/Request.zep index a2b636a763a..48c370d4efc 100644 --- a/phalcon/Http/Request.zep +++ b/phalcon/Http/Request.zep @@ -162,9 +162,11 @@ class Request extends AbstractInjectionAware implements RequestInterface var language; let language = this->getBestLanguage(), - language = explode("-", language); + language = explode("-", language), + language = language[0], + language = "*" === language ? "" : language; - return language[0]; + return language; } /**