From 3680fe1c0f017ca753441228176c401f2626e750 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 15 May 2019 17:34:16 +0200 Subject: fix warning with url ?lang[]=foo --- it_text.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3