From 830b7e7dbd18d6d2f151cd00e0a34b2960cf4b8e Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Thu, 10 Feb 2022 14:18:23 -0500 Subject: [PATCH] Bug 16258: (QA follow-up) Add a guard to the cron script Signed-off-by: Kyle M Hall Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- misc/cronjobs/edi_cron.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/cronjobs/edi_cron.pl b/misc/cronjobs/edi_cron.pl index 90f9fed681..19d3a16561 100755 --- a/misc/cronjobs/edi_cron.pl +++ b/misc/cronjobs/edi_cron.pl @@ -38,6 +38,8 @@ use Koha::Edifact::Transport; use Koha::Plugins::Handler; use Fcntl qw( LOCK_EX O_CREAT O_RDWR SEEK_SET ); +die "Syspref 'Edifact' is disabled" unless C4::Context->preference('Edifact'); + my $logdir = C4::Context->config('logdir'); # logging set to trace as this may be what you -- 2.30.2