diff --git a/libraries/vendor/joomla/registry/src/Registry.php b/libraries/vendor/joomla/registry/src/Registry.php index c2b6ec68692ec..c5aeec7732a83 100644 --- a/libraries/vendor/joomla/registry/src/Registry.php +++ b/libraries/vendor/joomla/registry/src/Registry.php @@ -508,11 +508,13 @@ public function set($path, $value, $separator = null) switch (true) { case (is_object($node)): - $result = $node->{$nodes[$i]} = $value; + $result = $node->{$nodes[$i]}; + $node->{$nodes[$i]} = $value; break; case (is_array($node)): - $result = $node[$nodes[$i]] = $value; + $result = $node[$nodes[$i]]; + $node->{$nodes[$i]} = $value; break; default: