Merge pull request #8881 from nextcloud/setUserValue_opt

Store setUserValue as string in cache
This commit is contained in:
Roeland Jago Douma 2018-03-19 14:17:59 +01:00 committed by GitHub
commit ce0c896d8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -233,7 +233,7 @@ class AllConfig implements \OCP\IConfig {
->andWhere($qb->expr()->eq('configkey', $qb->createNamedParameter($key)));
$qb->execute();
$this->userCache[$userId][$appName][$key] = $value;
$this->userCache[$userId][$appName][$key] = (string)$value;
return;
}
}
@ -258,7 +258,7 @@ class AllConfig implements \OCP\IConfig {
if (!isset($this->userCache[$userId][$appName])) {
$this->userCache[$userId][$appName] = array();
}
$this->userCache[$userId][$appName][$key] = $value;
$this->userCache[$userId][$appName][$key] = (string)$value;
}
}