Skip to content
Snippets Groups Projects
Commit eef1b045 authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Bail out from selectCardAction if no card ID is given. (#1263)

parent 79b62ae9
No related merge requests found
...@@ -191,6 +191,9 @@ class LibraryCardsController extends AbstractBase ...@@ -191,6 +191,9 @@ class LibraryCardsController extends AbstractBase
} }
$cardID = $this->params()->fromQuery('cardID'); $cardID = $this->params()->fromQuery('cardID');
if (null === $cardID) {
return $this->redirect()->toRoute('myresearch-home');
}
$user->activateLibraryCard($cardID); $user->activateLibraryCard($cardID);
// Connect to the ILS and check that the credentials are correct: // Connect to the ILS and check that the credentials are correct:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment