diff options
author | Urban Müller | 2019-05-15 17:34:16 +0200 |
---|---|---|
committer | Urban Müller | 2019-05-15 17:34:16 +0200 |
commit | 3680fe1c0f017ca753441228176c401f2626e750 (patch) | |
tree | 00e465e6fd58459e47d6b4d6e0cfcc8c1bce0780 | |
parent | ddbbb2d0902f1d475522d2a3538a4409955f68b5 (diff) | |
download | itools-3680fe1c0f017ca753441228176c401f2626e750.tar.gz itools-3680fe1c0f017ca753441228176c401f2626e750.tar.bz2 itools-3680fe1c0f017ca753441228176c401f2626e750.zip |
fix warning with url ?lang[]=foo
-rw-r--r-- | it_text.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_text.class b/it_text.class index 69b2e0e..443b34b 100644 --- a/it_text.class +++ b/it_text.class @@ -181,7 +181,7 @@ function etext($label, $values = null, $language = null) */ function set_language($language) { - $this->actlanguage = $this->languages_available[$language] ? $language : $this->defaultlanguage; + $this->actlanguage = is_scalar($language) && $this->languages_available[$language] ? $language : $this->defaultlanguage; } |