delete_messages_days was deleting all tickets

Version 1.48

Bugfix
Finished

Relating to: http://www.directadmin.com/features.php?id=1696 The option: delete_messages_days=1234 when set to a value greater than 0 would delete all tickets from the tickets.list files because the "newest file" from the tickets directory was not correctly being read in. Fixed the read to get the accurate date of the newest message, so the comparsion is accurate, and the tickets are not deleted when they shouldn't be.

Interested to try DirectAdmin? Get a 30-day Free Trial!