diff --git a/htdocs/public/ticketsup/list.php b/htdocs/public/ticketsup/list.php index 2b8f3d821d2..a071344fcb1 100644 --- a/htdocs/public/ticketsup/list.php +++ b/htdocs/public/ticketsup/list.php @@ -82,7 +82,7 @@ if ($action == "view_ticketlist") { } if (!$error) { - $ret = $object->fetch('', $track_id); + $ret = $object->fetch('', '', $track_id); if ($ret && $object->dao->id > 0) { // vérifie si l'adresse email est bien dans les contacts du ticket $contacts = $object->dao->liste_contact(-1, 'external'); @@ -263,9 +263,7 @@ if ($action == "view_ticketlist") { $limit = $conf->liste_limit; $page = GETPOST("page", 'int'); - if ($page == -1) { - $page = 0; - } + if (empty($page) || $page == -1) { $page = 0; } // If $page is not defined, or '' or -1 $offset = $limit * $page; $pageprev = $page - 1; $pagenext = $page + 1; diff --git a/htdocs/public/ticketsup/view.php b/htdocs/public/ticketsup/view.php index 3302c749e33..0a21402d0ed 100644 --- a/htdocs/public/ticketsup/view.php +++ b/htdocs/public/ticketsup/view.php @@ -80,7 +80,7 @@ if ($action == "view_ticket" || $action == "add_message" || $action == "close" | } if (!$error) { - $ret = $object->fetch('', $track_id); + $ret = $object->fetch('', '', $track_id); if ($ret && $object->dao->id > 0) { // vérifie si l'adresse email est bien dans les contacts du ticket $contacts = $object->dao->liste_contact(-1, 'external'); @@ -253,7 +253,7 @@ if ($action == "view_ticket" || $action == "add_message" || $action == "close" | $formticket->withfile = 2; $formticket->showMessageForm('100%'); } else { - print '
'; + print ''; print ''; print ''; print '';