diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-03-08 10:14:00 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-03-08 10:14:00 -0800 |
commit | 103cc35fc096f1cc1ca25fe5e0e25d1a71c80b86 (patch) | |
tree | 93ca7127ac5a334fe63c7f3c1b5272d81a4f45e5 /FS/FS/Cron | |
parent | 70877d564009919054ca785c5b8f756f0e81691a (diff) |
quiet warning when running without ticket_system
Diffstat (limited to 'FS/FS/Cron')
-rw-r--r-- | FS/FS/Cron/rt_tasks.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/Cron/rt_tasks.pm b/FS/FS/Cron/rt_tasks.pm index fd2a718..01ea0b5 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. |