- // Unhandled from Kroeg
- // kroeg:blocks, updated
-
- if (!empty($apcontact['photo']) && !Network::isValidHttpUrl($apcontact['photo'])) {
- Logger::info('Invalid URL for photo', ['url' => $apcontact['url'], 'photo' => $apcontact['photo']]);
- $apcontact['photo'] = null;
+ if (!Network::isValidHttpUrl($apcontact['photo'])) {
+ Logger::warning('Invalid URL for photo', ['url' => $apcontact['url'], 'photo' => $apcontact['photo']]);
+ $apcontact['photo'] = '';
+ }