X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/15176cbb3b162a07a055dbe6cfc0f98f9d65d0df..3b9f657cde3311f7e9ef0edef1f182076a0f0cf9:/SL/Helper/Inventory.pm diff --git a/SL/Helper/Inventory.pm b/SL/Helper/Inventory.pm index a1a142803..17ecc20e1 100644 --- a/SL/Helper/Inventory.pm +++ b/SL/Helper/Inventory.pm @@ -283,6 +283,7 @@ sub check_constraints { for (keys %$constraints ) { croak "unsupported constraint '$_'" unless $supported_constraints{$_}; + next unless defined $constraints->{$_}; my %whitelist = map { (ref $_ ? $_->id : $_) => 1 } listify($constraints->{$_}); my $accessor = $supported_constraints{$_};