Skip to content

Commit

Permalink
[BUGFIX] Fix runtime error for OAI-PMH access without verb
Browse files Browse the repository at this point in the history
This is a backport of a fix contributed in commit 4e77a8f.
It fixes the issue #1425.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jan 8, 2025
1 parent 715c91c commit 426f934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/OaiPmhController.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public function mainAction()
// Delete expired resumption tokens.
$this->deleteExpiredTokens();

switch ($this->parameters['verb']) {
switch ($this->parameters['verb'] ?? null) {
case 'GetRecord':
$this->verbGetRecord();
break;
Expand Down

0 comments on commit 426f934

Please sign in to comment.