diff --git a/cron_ticket_email_parser.php b/cron_ticket_email_parser.php index d1df9746..48ecefb6 100644 --- a/cron_ticket_email_parser.php +++ b/cron_ticket_email_parser.php @@ -14,6 +14,9 @@ TODO: */ +// Set working directory to the directory this cron script lives at. +chdir(dirname(__FILE__)); + // Get ITFlow config & helper functions require_once("config.php"); require_once("functions.php");