mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 16:19:06 +01:00
LSattr_ldap::shadowExpire: fix getUpdateData()
Fix to return a correctly rounded value as string.
This commit is contained in:
parent
42dd0aa728
commit
597054acad
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue