tryfix needsRefresh unit tests
Forced updateAttributesInterval from getAppValue to int Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
039f6c9636
commit
45dfc11137
|
@ -387,7 +387,7 @@ class User {
|
||||||
$lastChecked = $this->config->getUserValue($this->uid, 'user_ldap',
|
$lastChecked = $this->config->getUserValue($this->uid, 'user_ldap',
|
||||||
self::USER_PREFKEY_LASTREFRESH, 0);
|
self::USER_PREFKEY_LASTREFRESH, 0);
|
||||||
|
|
||||||
if((time() - intval($lastChecked)) < $this->config->getAppValue('user_ldap', 'updateAttributesInterval', 86400) ) {
|
if((time() - intval($lastChecked)) < intval($this->config->getAppValue('user_ldap', 'updateAttributesInterval', 86400)) ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue