mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
fixes #3059 list of online languages didn't load
This commit is contained in:
@@ -915,8 +915,16 @@ class lancheck
|
|||||||
|
|
||||||
foreach($rawData['language'] as $key => $att)
|
foreach($rawData['language'] as $key => $att)
|
||||||
{
|
{
|
||||||
|
// issue #3059 in case array @attributes is in $att
|
||||||
|
if (is_int($key) && is_array($att) && array_key_exists('@attributes', $att))
|
||||||
|
{
|
||||||
|
$att = $att['@attributes'];
|
||||||
|
}
|
||||||
// issue #3059 Language list didn't load
|
// issue #3059 Language list didn't load
|
||||||
if ($key != '@attributes') continue;
|
elseif ($key != '@attributes')
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$id = $att['name'];
|
$id = $att['name'];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user