mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-29 11:24:11 +01:00
Contacts: Return error if contact photo can't be loaded
This commit is contained in:
parent
5125adb834
commit
958af7bbe0
@ -95,6 +95,9 @@ class ContactController extends BaseController {
|
||||
$image->resize($max_size);
|
||||
}
|
||||
return $response;
|
||||
} else {
|
||||
$response = new JSONResponse();
|
||||
$response->bailOut('Error getting user photo');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user