From 45dfc1113725c27bfbf4dbc433d8df873bc764cb Mon Sep 17 00:00:00 2001 From: sidey79 Date: Tue, 8 Aug 2017 21:53:55 +0200 Subject: [PATCH] tryfix needsRefresh unit tests Forced updateAttributesInterval from getAppValue to int Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/User/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php index 2ad395275d..c93d2a77d8 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;