From: Ivan Kohler Date: Wed, 8 Mar 2017 18:14:02 +0000 (-0800) Subject: quiet warning when running without ticket_system X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;ds=sidebyside;h=d260dc2e4c5a9384449beb994382e29cf625061b;hp=da5b18b44fd8f953832a9985602cdd69e81bafb0;p=freeside.git quiet warning when running without ticket_system --- diff --git a/FS/FS/Cron/rt_tasks.pm b/FS/FS/Cron/rt_tasks.pm index fd2a718d7..01ea0b5dd 100644 --- a/FS/FS/Cron/rt_tasks.pm +++ b/FS/FS/Cron/rt_tasks.pm @@ -29,7 +29,7 @@ sub rt_daily { # RT_External installations should have their own cron scripts for this my $system = $FS::TicketSystem::system; - return if $system ne 'RT_Internal'; + return if !defined($system) || $system ne 'RT_Internal'; # if -d or -y is in use, bail out. There's no reliable way to tell RT # to use an alternate system time.