summaryrefslogtreecommitdiffstats
path: root/lib/private/avatar.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-06-15 17:54:48 +0200
committerLukas Reschke <lukas@owncloud.com>2015-06-15 17:54:48 +0200
commit15ba2a41002d0fb72a5a6ee7f3cb129b03acc4e5 (patch)
tree60963b419eaeada0684bdd2681f3ab3d7508fcbb /lib/private/avatar.php
parent4bc35286ffc49788236ea4828d0de733f8ee1446 (diff)
downloadnextcloud-server-15ba2a41002d0fb72a5a6ee7f3cb129b03acc4e5.tar.gz
nextcloud-server-15ba2a41002d0fb72a5a6ee7f3cb129b03acc4e5.zip
Reintroduce user cache
This was required by avatars and was broken with https://github.com/owncloud/core/pull/16200 Fixes https://github.com/owncloud/core/issues/16942
Diffstat (limited to 'lib/private/avatar.php')
-rw-r--r--lib/private/avatar.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/avatar.php b/lib/private/avatar.php
index 61a179810f2..133ab4bcd61 100644
--- a/lib/private/avatar.php
+++ b/lib/private/avatar.php
@@ -90,6 +90,7 @@ class Avatar implements \OCP\IAvatar {
* @return void
*/
public function set ($data) {
+
if($data instanceOf \OCP\IImage) {
$img = $data;
$data = $img->data();