From dac3eba397630e7150ec35d9ada2536fbd5ceed4 Mon Sep 17 00:00:00 2001 From: MDW Date: Tue, 19 Mar 2024 22:02:04 +0100 Subject: [PATCH] Fix arg type to abs() with cast --- htdocs/partnership/class/partnershiputils.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/partnership/class/partnershiputils.class.php b/htdocs/partnership/class/partnershiputils.class.php index 8248860f83b..4194b117698 100644 --- a/htdocs/partnership/class/partnershiputils.class.php +++ b/htdocs/partnership/class/partnershiputils.class.php @@ -1,5 +1,6 @@ + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -91,7 +92,7 @@ class PartnershipUtils dol_syslog(get_class($this)."::doCancelStatusOfMemberPartnership cancel expired partnerships with grace delay of ".$gracedelay); $now = dol_now(); - $datetotest = dol_time_plus_duree($now, -1 * abs($gracedelay), 'd'); + $datetotest = dol_time_plus_duree($now, -1 * abs((float) $gracedelay), 'd'); $this->db->begin();