Skip to content

Commit

Permalink
[#3135] -
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Jan 11, 2020
1 parent 1c5be3b commit 2a147ef
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 2a147ef

Please sign in to comment.