From: Moritz Bunkus Date: Tue, 28 Jan 2020 15:08:33 +0000 (+0100) Subject: LXDebug::clone_for_dump: Warnung wegen Hash-Zugriff mit Key undef vermeiden X-Git-Tag: release-3.5.6.1~382 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5c3509945ff7aeef205219a2b6f4f3a6c5ea38b8;p=kivitendo-erp.git LXDebug::clone_for_dump: Warnung wegen Hash-Zugriff mit Key undef vermeiden --- diff --git a/SL/LXDebug.pm b/SL/LXDebug.pm index 6b27b0a77..0503dcb6c 100644 --- a/SL/LXDebug.pm +++ b/SL/LXDebug.pm @@ -161,6 +161,7 @@ sub clone_for_dump { my ($src, $dumped) = @_; return undef if !defined($src); + return $src if !ref($src); $dumped ||= {}; my $addr = refaddr($src);