ldap sync: handle non-sync-photo case
authorPhilipp Schüle <p.schuele@metaways.de>
Tue, 20 Sep 2016 13:20:42 +0000 (15:20 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Tue, 20 Sep 2016 18:20:09 +0000 (20:20 +0200)
Change-Id: I844304f480fc35eee6ea951927713f0d8cd7e9e3
Reviewed-on: http://gerrit.tine20.com/customers/3588
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
Tested-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Tinebase/User.php

index f03af52..db1ff89 100644 (file)
@@ -582,6 +582,8 @@ class Tinebase_User
                         . ' Removing/unset current jpegphoto');
                     $contact->jpegphoto = false;
                 }
+            } else {
+                $syncPhoto = false;
             }
             $diff = $contact->diff($originalContact, $syncPhoto ? array('n_fn') : array('jpegphoto', 'n_fn'));
             if (! $diff->isEmpty() || ($originalContact->jpegphoto === 0 && ! empty($contact->jpegphoto)) ) {