Don't return a filename when it wasn't stored

pull/11477/head
Michael 2022-05-09 08:47:02 +00:00
rodzic f744dd362d
commit f785026289
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -124,6 +124,11 @@ class Avatar
DI::profiler()->stopRecording();
if (!file_exists($filepath)) {
Logger::notice('Avatar cache file could not be stored', ['file' => $filepath]);
return '';
}
return DI::baseUrl() . $path;
}