0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-19 14:41:32 +00:00

Change check to verify that request is present and contains a file

This commit is contained in:
TBK 2020-03-04 00:08:01 +01:00
parent 01b95d91ba
commit 5cd56f63ff
No known key found for this signature in database
GPG key ID: 6D4FD19CB66C95EA
2 changed files with 2 additions and 2 deletions
app/Http/Controllers

View file

@ -57,7 +57,7 @@ class SettingController extends Controller
}
// Update logo image if set
if ($request->has('app_logo')) {
if ($request->hasFile('app_logo')) {
$logoFile = $request->file('app_logo');
$this->imageRepo->destroyByType('system');
$image = $this->imageRepo->saveNew($logoFile, 'system', 0, null, 86);