Skip to content

Commit

Permalink
Update GuidedTours.php
Browse files Browse the repository at this point in the history
Fix deprecated urldecode(): Passing null to parameter #1, preventing tours to start
  • Loading branch information
obuisard authored Sep 3, 2023
1 parent 9e9000b commit 5ba7f45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/system/guidedtours/src/Extension/GuidedTours.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ public static function getSubscribedEvents(): array
public function startTour(Event $event)
{
$tourId = (int) $this->getApplication()->getInput()->getInt('id');
$tourUid = $this->getApplication()->getInput()->getString('uid');
$tourUid = $this->getApplication()->getInput()->getString('uid', '');
$tourUid = $tourUid !== '' ? urldecode($tourUid) : '';

$tour = null;
$tour = null;

if ($tourId > 0) {
$tour = $this->getTour($tourId);
Expand Down

0 comments on commit 5ba7f45

Please sign in to comment.