From 4d907ef443ac58289b6be6d88cde82b25692ed35 Mon Sep 17 00:00:00 2001 From: Indelog Date: Thu, 22 Apr 2021 17:04:35 +0200 Subject: [PATCH] Fix Stickler --- htdocs/don/class/paymentdonation.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/don/class/paymentdonation.class.php b/htdocs/don/class/paymentdonation.class.php index 6a39850e2db..82c3ddde7fa 100644 --- a/htdocs/don/class/paymentdonation.class.php +++ b/htdocs/don/class/paymentdonation.class.php @@ -137,10 +137,9 @@ class PaymentDonation extends CommonObject // Clean parameters if (isset($this->chid)) { $this->chid = (int) $this->chid; - } - // NOTE : The property used in INSERT for fk_donation is not fk_donation but chid - // (keep priority to chid property) - elseif (isset($this->fk_donation)) { + } elseif (isset($this->fk_donation)) { + // NOTE : The property used in INSERT for fk_donation is not fk_donation but chid + // (keep priority to chid property) $this->chid = (int) $this->fk_donation; } if (isset($this->fk_donation)) {