diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-03-19 14:17:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-19 14:17:59 +0100 |
commit | ce0c896d8f20961d15d894a7d7b8bb735484787c (patch) | |
tree | 4cf7ea28d2f72348a82603cfd022b0b91a10d2ec | |
parent | 9834f33d56f64f63b0f05c149418b2c83d5fa37d (diff) | |
parent | 431750828e27e36b9ee4fe5fe4bb01c754c8c1c4 (diff) | |
download | nextcloud-server-ce0c896d8f20961d15d894a7d7b8bb735484787c.tar.gz nextcloud-server-ce0c896d8f20961d15d894a7d7b8bb735484787c.zip |
Merge pull request #8881 from nextcloud/setUserValue_opt
Store setUserValue as string in cache
-rw-r--r-- | lib/private/AllConfig.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/AllConfig.php b/lib/private/AllConfig.php index 745bab367d3..58706e290fb 100644 --- a/lib/private/AllConfig.php +++ b/lib/private/AllConfig.php @@ -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; } } |