* CardDAV/Addressbook: fixed not working adding or update of photo

This commit is contained in:
Ralf Becker 2015-08-26 16:39:10 +00:00
parent de23178279
commit 36c5d92fac

View File

@ -953,7 +953,8 @@ class addressbook_vcal extends addressbook_bo
break;
case 'jpegphoto':
$contact[$fieldName] = $vcardValues[$vcardKey]['value'];
$contact[$fieldName] = $vcardValues[$vcardKey]['params']['ENCODING'] == 'b' ?
base64_decode($vcardValues[$vcardKey]['value']): $vcardValues[$vcardKey]['value'];
break;
case 'note':