1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Issue #5443 Remove warning about invalid language.

This commit is contained in:
camer0n
2025-04-27 07:14:37 -07:00
parent 6c7801e218
commit 8b5a83e4bf

View File

@@ -51,9 +51,11 @@ if(USER && !getperms('0') && vartrue($pref['multilanguage']) && !getperms(e_LANG
$lng = e107::getLanguage();
$tmp = explode(".",ADMINPERMS);
foreach($tmp as $ln)
{
if(strlen($ln) < 3) // not a language perm.
if(strlen($ln) < 3 || preg_match('/\d/', $ln)) // Skip if less than 2 chars or contains a number
{
continue;
}