Skip to content

Commit

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

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

/**
Expand Down

0 comments on commit 29a99cc

Please sign in to comment.