Fix arg type to abs() with cast
This commit is contained in:
parent
402db8eff3
commit
dac3eba397
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue