summaryrefslogtreecommitdiff
path: root/net/phpldapadmin/files/patch-lib_common.php
blob: 9e464a0fd2a15f8791d63f46ad3bc45b38b882a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- 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']);