mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +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) {
|
public function getUpdateData($data) {
|
||||||
$ret=array();
|
$ret=array();
|
||||||
foreach(ensureIsArray($data) as $val)
|
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;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue