Skip to content

Commit

Permalink
Merge pull request #12720 from frederic34/patch-8
Browse files Browse the repository at this point in the history
The variable $i seems to be never defined.
  • Loading branch information
eldy committed Dec 17, 2019
2 parents afa7183 + ab1b5cf commit 2ab8292
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/ticket/class/api_tickets.class.php
Expand Up @@ -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);
Expand Down

0 comments on commit 2ab8292

Please sign in to comment.