Revision 582dc2d8
Von Sven Schöling vor etwa 8 Jahren hinzugefügt
SL/CT.pm | ||
---|---|---|
40 | 40 |
use SL::Common; |
41 | 41 |
use SL::CVar; |
42 | 42 |
use SL::DBUtils; |
43 |
use SL::DB; |
|
43 | 44 |
use Text::ParseWords; |
44 | 45 |
|
45 | 46 |
use strict; |
... | ... | |
341 | 342 |
|
342 | 343 |
die 'Missing argument: cp_id' unless $::form->{cp_id}; |
343 | 344 |
|
344 |
my $dbh = $form->dbconnect($myconfig);
|
|
345 |
my $dbh = SL::DB->client->dbh;
|
|
345 | 346 |
my $query = |
346 | 347 |
qq|SELECT * FROM contacts c | . |
347 | 348 |
qq|WHERE cp_id = ? ORDER BY cp_id limit 1|; |
... | ... | |
359 | 360 |
($form->{cp_used}) = selectfirst_array_query($form, $dbh, $query, ($form->{cp_id})x2); |
360 | 361 |
|
361 | 362 |
$sth->finish; |
362 |
$dbh->disconnect; |
|
363 | 363 |
|
364 | 364 |
$main::lxdebug->leave_sub(); |
365 | 365 |
} |
Auch abrufbar als: Unified diff
CT: single-dbh disconnects