Kolab Z-Push Contact Picture Sync Bug?

Kai Holthaus kmh at sonic.net
Wed Dec 29 04:55:46 CET 2010


Hi,

I was wondering why my z-Push installation wouldn't sync most of my pictures 
to my Android phone. When I dug into the code, I found this in 
backend/kolab.php (line 1842):

if ($ctype[0] == "image/jpeg") {
   [...]
}

Turns out that most of my pictures were stored as pngs, not jpegs. Changing 
line 1842 to

if (($ctype[0] == "image/png") || ($ctype[0] == "image/jpeg")) {

seems to have fixed the problem - pictures are now showing up on my phone.

Regards,

	Kai

-- 
Hoftstadter's Law:
"It always takes longer than you expect,
even when you take into account Hofstadter's Law."
                                      -- Douglas R. Hoftstadter

kmh.AT.sonic.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.kolab.org/pipermail/users/attachments/20101228/bfad4e71/attachment.sig>


More information about the users mailing list