mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Issue #5443 Remove warning about invalid language.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user