diff options
-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; } |