summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
diff options
context:
space:
mode:
authorsidey79 <s.butzek@gmx.de>2017-08-08 21:53:55 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-11-10 17:07:41 +0100
commit45dfc1113725c27bfbf4dbc433d8df873bc764cb (patch)
treef183775a3a59153a8fb5207c1a6ebdb0027b0532 /apps/user_ldap/lib
parent039f6c9636cf57d6206fce8c157f4fac0d03e406 (diff)
downloadnextcloud-server-45dfc1113725c27bfbf4dbc433d8df873bc764cb.tar.gz
nextcloud-server-45dfc1113725c27bfbf4dbc433d8df873bc764cb.zip
tryfix needsRefresh unit tests
Forced updateAttributesInterval from getAppValue to int Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r--apps/user_ldap/lib/User/User.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php
index 2ad395275d2..c93d2a77d80 100644
--- a/apps/user_ldap/lib/User/User.php
+++ b/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;