X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/27cc5749aa0a60296c6383f3a60d969b17c278a2..e998dd2f9cbfe2957484caee79bed2abc0762ec4:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 2d4bbd8c9..099a6736e 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -2607,7 +2607,7 @@ sub mtime_ischanged { my ($self, $table, $option) = @_; return unless $self->{id}; - croak ("wrong call, no valid table defined") unless $table =~ /(oe|ar|ap|delivery_orders|parts)/; + croak ("wrong call, no valid table defined") unless $table =~ /^(oe|ar|ap|delivery_orders|parts)$/; my $query = "SELECT mtime, itime FROM " . $table . " WHERE id = ?"; my $ref = selectfirst_hashref_query($self, $self->get_standard_dbh, $query, $self->{id});