freebsd-ports/net/phpldapadmin/files/patch-lib_common.php
Krzysztof fee2b338d2
net/phpldapadmin: fix support for php81+
PR:	266678
Reported by:	Gerard Seibert
Approved by: rene (mentor)
Differential Revision: https://reviews.freebsd.org/D37513
2022-12-01 10:53:34 +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']);