opnsense-ports/net/phpldapadmin/files/patch-lib_common.php
Franco Fichtner 792de5bda9 */*: sync with upstream
Taken from: FreeBSD
2022-12-06 09:38:46 +01:00

14 lines
574 B
PHP

--- lib/common.php.orig 2021-12-12 02:35:51 UTC
+++ lib/common.php
@@ -247,9 +247,9 @@ if ($app['language'] == 'auto') {
$value = preg_split('/[-]+/',$value);
if (sizeof($value) == 2)
- $app['lang_http'][$key] = strtolower($value[0]).'_'.strtoupper($value[1]);
+ $app['lang_http'][$key] = strtolower((string) $value[0]).'_'.strtoupper($value[1]);
else
- $app['lang_http'][$key] = auto_lang(strtolower($value[0]));
+ $app['lang_http'][$key] = auto_lang(strtolower((string) $value[0]));
}
$app['lang_http'] = array_unique($app['lang_http']);