- Edited
Hello,I am in the process of adding mod_geoip2 in "staff/tickets.inc.php" to show the country flag image in a new column.To make this function I will need to first fetch the IP address of the ticket.I tried to add the below code in "tickets.inc.php"<?php echo $ticket->getIP(); ?>But I get this error:"Fatal error: Call to a member function getIP() on a non-object"The code works perfectly in ticket-view.inc.php but not in tickets.inc.php.I only know to fiddle with PHP and I am not a PHP Programmer. Can some one help me to just print the IP Address of the ticket?Best Regards,San