From: Moritz Bunkus Date: Mon, 13 Feb 2017 10:24:44 +0000 (+0100) Subject: File-Controller: Warnungen wegen undefinierter Werte vermeiden X-Git-Tag: release-3.5.4~1475 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6a7d9449271bfeeb49c2a2192870ecd2b8f7c86c;p=kivitendo-erp.git File-Controller: Warnungen wegen undefinierter Werte vermeiden Warnungen traten bei t/file/filesystem.t auf. --- diff --git a/SL/Controller/File.pm b/SL/Controller/File.pm index 875478fb2..8d2e9f2bd 100644 --- a/SL/Controller/File.pm +++ b/SL/Controller/File.pm @@ -309,8 +309,8 @@ sub action_download { sub check_object_params { my ($self) = @_; - my $id = $::form->{object_id} +0; - my $draftid = $::form->{draft_id} +0; + my $id = ($::form->{object_id} // 0) * 1; + my $draftid = ($::form->{draft_id} // 0) * 1; my $gldoc = 0; my $type = undef;