From ab1b5cfab50e5b46f4a26d97580956b3dea60c76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 16 Dec 2019 20:30:24 +0100 Subject: [PATCH] The variable $i seems to be never defined. --- htdocs/ticket/class/api_tickets.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/ticket/class/api_tickets.class.php b/htdocs/ticket/class/api_tickets.class.php index c95b092cf2e67..707fe403c6c26 100644 --- a/htdocs/ticket/class/api_tickets.class.php +++ b/htdocs/ticket/class/api_tickets.class.php @@ -291,6 +291,7 @@ public function index($socid = 0, $sortfield = "t.rowid", $sortorder = "ASC", $l $result = $db->query($sql); if ($result) { $num = $db->num_rows($result); + $i = 0; while ($i < $num) { $obj = $db->fetch_object($result); $ticket_static = new Ticket($db);