-
Notifications
You must be signed in to change notification settings - Fork 152
Open
Labels
bugSomething isn't workingSomething isn't workingneed to reproduceIssue that has not been reproducedIssue that has not been reproduced
Description
Bug description
PHP 8.4 raises a warning:
Undefined array key "node" at NoteUtil.php#201
Steps to reproduce
- Install Nextcloud with PHP 8.4
- Install Notes app (latest version)
- Open Notes
Expected behavior
No warning, Notes works correctly.
Actual behavior
PHP Warning: Undefined array key "node" at
/apps/notes/lib/Service/NoteUtil.php#201
Line 201:
['path' => $defaultPath, 'node' => $folder] =
$this->settingsService->getDefaultNotesNode($userId);
Suggested fix
Replace line 201:
['path' => $defaultPath, 'node' => $folder] = $this->settingsService->getDefaultNotesNode($userId);
With:
$result = $this->settingsService->getDefaultNotesNode($userId);
$defaultPath = $result['path'] ?? null;
$folder = $result['node'] ?? null;
Copia e incolla questo blocco in fondo al corpo dell'issue, dopo la sezione Env
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneed to reproduceIssue that has not been reproducedIssue that has not been reproduced