From 1c83a7d87de12c9bd625eaa6d3747fd89e03d242 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Sat, 10 Feb 2018 00:17:20 +0100 Subject: [PATCH] Update Utility class, replace deprecated each function --- Changelog | 2 ++ nntmux/utility/Utility.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index e7d84f76d..a45bc2b03 100755 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +2018-02-10 DariusIII + * Chg: Update Utility class, replace deprecated each function 2018-02-09 DariusIII * Chg: Update laravel/framework to version 5.6.3 * Chg: Use categoryid to cache root category children diff --git a/nntmux/utility/Utility.php b/nntmux/utility/Utility.php index f2164ca3a..3bdea2612 100755 --- a/nntmux/utility/Utility.php +++ b/nntmux/utility/Utility.php @@ -652,7 +652,8 @@ class Utility foreach ($xml->children($namespace) as $childXml) { //recurse into child nodes $childArray = self::xmlToArray($childXml, $options); - list($childTagName, $childProperties) = each($childArray); + $childTagName = key($childArray); + $childProperties = current($childArray); //replace characters in tag name if ($options['keySearch']) {