X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FCommon.pm;h=9d7cdcbccd088ca37b8ac1b293fbfdcadc96d1cd;hb=75e721508b508648ffe2454f10cfe29ba8a359dd;hp=43b9aaab7e5c1f550e67b03d3c402b40a8aaffbe;hpb=900dff5fd67e8ffd81beef6c2c83d155682c17fd;p=kivitendo-erp.git diff --git a/SL/Common.pm b/SL/Common.pm index 43b9aaab7..9d7cdcbcc 100644 --- a/SL/Common.pm +++ b/SL/Common.pm @@ -446,4 +446,15 @@ sub check_params { } } +sub check_params_x { + my $params = shift; + + foreach my $key (@_) { + if (!exists $params->{$key}) { + my $subroutine = (caller(1))[3]; + $main::form->error($main::locale->text("Missing parameter #1 in call to sub #2.", $key, $subroutine)); + } + } +} + 1;