From 58e18980c5c87f4d6f7d065aadf991c4afd11afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Chili=C5=84ski?= Date: Tue, 8 Aug 2023 18:24:39 +0200 Subject: [PATCH] bugfix: customer transferm form with assignment values could not be printed (inversed condition) --- modules/customertransferform.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/customertransferform.php b/modules/customertransferform.php index b07cb65cf5..8d53de143a 100644 --- a/modules/customertransferform.php +++ b/modules/customertransferform.php @@ -43,7 +43,7 @@ if ($type == LMSTcpdfTransferForm::VALUE_ASSIGNMENTS) { //get assignments grouped by currency $currency_assignments = $LMS->GetCustomerAssignmentValue($cid); - if (!empty($currency_assignments)) { + if (empty($currency_assignments)) { access_denied('Active assignments not found!'); }