mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
$image doesn't have data() when a defaultavatar should be used
This commit is contained in:
parent
91fed38f00
commit
5c1d64b80e
1 changed files with 1 additions and 1 deletions
|
|
@ -30,8 +30,8 @@ class OC_Core_Avatar_Controller {
|
|||
|
||||
\OC_Response::disableCaching();
|
||||
\OC_Response::setLastModifiedHeader(gmdate( 'D, d M Y H:i:s' ).' GMT');
|
||||
\OC_Response::setETagHeader(crc32($image->data()));
|
||||
if ($image instanceof \OC_Image) {
|
||||
\OC_Response::setETagHeader(crc32($image->data()));
|
||||
$image->show();
|
||||
} elseif ($image === false) {
|
||||
\OC_JSON::success(array('user' => \OC_User::getDisplayName($user), 'size' => $size));
|
||||
|
|
|
|||
Loading…
Reference in a new issue