summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2019-05-15 17:34:16 +0200
committerUrban Müller2019-05-15 17:34:16 +0200
commit3680fe1c0f017ca753441228176c401f2626e750 (patch)
tree00e465e6fd58459e47d6b4d6e0cfcc8c1bce0780
parentddbbb2d0902f1d475522d2a3538a4409955f68b5 (diff)
downloaditools-3680fe1c0f017ca753441228176c401f2626e750.tar.gz
itools-3680fe1c0f017ca753441228176c401f2626e750.tar.bz2
itools-3680fe1c0f017ca753441228176c401f2626e750.zip
fix warning with url ?lang[]=foo
-rw-r--r--it_text.class2
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;
}