From: Sven Schöling Date: Mon, 20 Feb 2012 12:22:56 +0000 (+0100) Subject: CT->get_contact - Fehlerhaften Aufruf abfangen. X-Git-Tag: release-2.7.0rc1~27 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5c1fb49ca6043c09f35dc42429443a7a3d97dce1;p=kivitendo-erp.git CT->get_contact - Fehlerhaften Aufruf abfangen. --- diff --git a/SL/CT.pm b/SL/CT.pm index b46ee099b..4fbb583d7 100644 --- a/SL/CT.pm +++ b/SL/CT.pm @@ -868,6 +868,9 @@ sub get_contact { $main::lxdebug->enter_sub(); my ( $self, $myconfig, $form ) = @_; + + die 'Missing argument: cp_id' unless $::form->{cp_id}; + my $dbh = $form->dbconnect($myconfig); my $query = qq|SELECT * FROM contacts c | .