LSattr_ldap::shadowExpire: fix getUpdateData()

Fix to return a correctly rounded value as string.
This commit is contained in:
Benjamin Renard 2020-12-01 16:43:31 +01:00
parent 42dd0aa728
commit 597054acad

View file

@ -52,7 +52,8 @@ class LSattr_ldap_shadowExpire extends LSattr_ldap {
public function getUpdateData($data) {
$ret=array();
foreach(ensureIsArray($data) as $val)
$ret[] = strval(round(intval($val) / 86400));
$ret[] = strval(floor(intval($val) / 86400));
self :: log_debug($this."->getUpdateData(): input data=".varDump($data)." / update data=".varDump($ret));
return $ret;
}