diff options
author | Mario <mario@mariovavti.com> | 2022-02-13 18:58:12 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-13 18:58:12 +0000 |
commit | a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa (patch) | |
tree | 048628b0da961a7cfda32dce7ed3572875e22907 /include/language.php | |
parent | 4b06bc552f04fc78545a450343cc59e236791a66 (diff) | |
download | volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.tar.gz volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.tar.bz2 volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.zip |
address deprecation warnings
Diffstat (limited to 'include/language.php')
-rw-r--r-- | include/language.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/language.php b/include/language.php index d291deb63..23aff0a02 100644 --- a/include/language.php +++ b/include/language.php @@ -311,6 +311,11 @@ function string_plural_select_default($n) { * @return string Language code in 2-letter ISO 639-1 (en, de, fr) format */ function detect_language($s) { + + if (!$s) { + return EMPTY_STR; + } + $min_length = get_config('system', 'language_detect_min_length'); if ($min_length === false) $min_length = LANGUAGE_DETECT_MIN_LENGTH; |