From 4c54742ba9a2790149b0aa63b18fc2ccf5a287a3 Mon Sep 17 00:00:00 2001 From: Achim Ennenbach Date: Sat, 4 Aug 2018 20:53:01 +0200 Subject: [PATCH] fixes #3059 list of online languages didn't load --- e107_admin/lancheck.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/e107_admin/lancheck.php b/e107_admin/lancheck.php index 913a57627..e662b08e5 100644 --- a/e107_admin/lancheck.php +++ b/e107_admin/lancheck.php @@ -915,8 +915,16 @@ class lancheck 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 - if ($key != '@attributes') continue; + elseif ($key != '@attributes') + { + continue; + } $id = $att['name'];