Browse Source

Fix type of PreviewController::$userId

Can be null if not logged in; currently crashes

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
tags/v26.0.0beta1
Varun Patil 1 year ago
parent
commit
136b2c5949
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      core/Controller/PreviewController.php

+ 1
- 1
core/Controller/PreviewController.php View File

@@ -40,7 +40,7 @@ use OCP\IPreview;
use OCP\IRequest;

class PreviewController extends Controller {
private string $userId;
private ?string $userId;
private IRootFolder $root;
private IPreview $preview;


Loading…
Cancel
Save