From 556906175f4d0b4c542ea03bd8fc5fb5c9a9a932 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 8 Mar 2017 10:13:58 -0800 Subject: [PATCH] quiet warning when running without ticket_system --- FS/FS/Cron/rt_tasks.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.11.0