X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d87c3bf791e5222ee0d1ef2d23689ac9dffe63a5..900dff5fd67e8ffd81beef6c2c83d155682c17fd:/SL/Common.pm diff --git a/SL/Common.pm b/SL/Common.pm index 2aedb6f81..43b9aaab7 100644 --- a/SL/Common.pm +++ b/SL/Common.pm @@ -435,4 +435,15 @@ sub save_email_status { $main::lxdebug->leave_sub(); } +sub check_params { + my $params = shift; + + foreach my $key (@_) { + if (!defined $params->{$key}) { + my $subroutine = (caller(1))[3]; + $main::form->error($main::locale->text("Missing parameter #1 in call to sub #2.", $key, $subroutine)); + } + } +} + 1;