mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Don't return a filename when it wasn't stored
This commit is contained in:
parent
f744dd362d
commit
f785026289
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue