summaryrefslogtreecommitdiff
path: root/framework/I18N/core/HTTPNegotiator.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/I18N/core/HTTPNegotiator.php')
-rw-r--r--framework/I18N/core/HTTPNegotiator.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/I18N/core/HTTPNegotiator.php b/framework/I18N/core/HTTPNegotiator.php
index dce40194..66017fda 100644
--- a/framework/I18N/core/HTTPNegotiator.php
+++ b/framework/I18N/core/HTTPNegotiator.php
@@ -51,8 +51,9 @@ class HTTPNegotiator
*/
function getLanguages()
{
- if(!is_null($this->languages))
+ if($this->languages !== null) {
return $this->languages;
+ }
$this->languages = array();
@@ -107,8 +108,9 @@ class HTTPNegotiator
*/
function getCharsets()
{
- if(!is_null($this->charsets))
+ if($this->charsets !== null) {
return $this->charsets;
+ }
$this->charsets = array();