tryfix needsRefresh unit tests

Forced updateAttributesInterval from getAppValue to int

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pull/6678/head
sidey79 9 years ago committed by Arthur Schiwon
parent 039f6c9636
commit 45dfc11137
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
  1. 2
      apps/user_ldap/lib/User/User.php

@ -387,7 +387,7 @@ class User {
$lastChecked = $this->config->getUserValue($this->uid, 'user_ldap',
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 true;

Loading…
Cancel
Save