From c59b5a7a6e093fab785a8ef48a1e3767283ba165 Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 16 Sep 2022 09:13:01 +0200 Subject: [PATCH] document how to test LDAP/AD behavior --- api/src/Contacts/Photo.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/src/Contacts/Photo.php b/api/src/Contacts/Photo.php index 857caf842c..5ce39e4cf0 100644 --- a/api/src/Contacts/Photo.php +++ b/api/src/Contacts/Photo.php @@ -142,6 +142,9 @@ class Photo 'contact_id' => $this->contact['id'], ])); } + // to test/debug behavior for accounts in LDAP or AD uncomment the following line + //if ($path[0] === '/') $path = file_get_contents(Api\Vfs::PREFIX.$path); + // if we got photo, we have to create a temp. file to share if ($path[0] !== '/') {