more fixes for migration to PDO, refs #1287

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-11-06 11:08:48 +01:00
parent 74bb3ccb7e
commit 04012e5fff
3 changed files with 7 additions and 14 deletions

View File

@@ -394,11 +394,11 @@ if ($page == 'customers'
/*
* move old tickets to archive
*/
$tickets = ticket::customerHasTickets($db, $id);
$tickets = ticket::customerHasTickets($id);
if ($tickets !== false && isset($tickets[0])) {
foreach ($tickets as $ticket) {
$now = time();
$mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$ticket);
$mainticket = ticket::getInstanceOf($userinfo, $settings, (int)$ticket);
$mainticket->Set('lastchange', $now, true, true);
$mainticket->Set('lastreplier', '1', true, true);
$mainticket->Set('status', '3', true, true);