From: Jan Büren Date: Wed, 26 Jul 2017 07:46:36 +0000 (+0200) Subject: Kosmetik X-Git-Tag: release-3.5.4~958 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d33e506e15d924a72d3b3830553ef9ac4964ed52;p=kivitendo-erp.git Kosmetik --- diff --git a/SL/File/Backend/Filesystem.pm b/SL/File/Backend/Filesystem.pm index 45254c9d5..68263b88e 100644 --- a/SL/File/Backend/Filesystem.pm +++ b/SL/File/Backend/Filesystem.pm @@ -78,8 +78,9 @@ sub get_mtime { my ($self, %params) = @_; die "no dbfile" unless $params{dbfile}; die "unknown version" if $params{version} && - ($params{version} < 0 || $params{version} > $params{dbfile}->backend_data) ; - my $path = $self->_filesystem_path($params{dbfile},$params{version}); + ($params{version} < 0 || $params{version} > $params{dbfile}->backend_data); + my $path = $self->_filesystem_path($params{dbfile}, $params{version}); + die "No file found at $path. Expected: $params{dbfile}{file_name}, file.id: $params{dbfile}{id}" if !-f $path; my @st = stat($path);