Fix arg type to abs() with cast

This commit is contained in:
MDW
2024-03-19 22:02:04 +01:00
parent 402db8eff3
commit dac3eba397

View File

@@ -1,5 +1,6 @@
<?php
/* Copyright (C) 2021 NextGestion <contact@nextgestion.com>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* 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();