Continued:

- added more type-hints
- added some documentation
- Contact::getAccountType() should only process string, not null
This commit is contained in:
Roland Häder 2022-06-16 21:57:02 +02:00
parent 45b5f67bca
commit e484b6d6dc
3 changed files with 36 additions and 36 deletions

View file

@ -166,7 +166,7 @@ class Directory extends BaseModule
'img_hover' => $contact['name'],
'name' => $contact['name'],
'details' => $details,
'account_type' => Model\Contact::getAccountType($contact['contact-type']),
'account_type' => (!empty($contact['contact-type']) ? Model\Contact::getAccountType($contact['contact-type']) : ''),
'profile' => $profile,
'location' => $location_e,
'tags' => $contact['pub_keywords'],