Don't try to load a profile picture for contacts the doesn't have any.
This commit is contained in:
parent
07c422d81d
commit
4446854f75
|
@ -56,7 +56,7 @@ $thumbnail_size = 23;
|
|||
// Find the photo from VCard.
|
||||
$image = new OC_Image();
|
||||
$photo = $contact->getAsString('PHOTO');
|
||||
|
||||
if($photo) {
|
||||
OC_Response::setETagHeader(md5($photo));
|
||||
|
||||
if($image->loadFromBase64($photo)) {
|
||||
|
@ -77,4 +77,5 @@ if($image->loadFromBase64($photo)) {
|
|||
} else {
|
||||
OC_Log::write('contacts','thumbnail.php. Couldn\'t load image string for ID '.$id,OC_Log::ERROR);
|
||||
}
|
||||
}
|
||||
getStandardImage();
|
||||
|
|
Loading…
Reference in New Issue