Skip to content

Commit

Permalink
Merge pull request #56 from xJuvi/patch-4
Browse files Browse the repository at this point in the history
fix undefined GET Keys
  • Loading branch information
jeph864 authored Aug 28, 2024
2 parents 83bd58f + 24887e9 commit 94de878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guest.php
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ private function httpExit(int $code = 404)

private function __construct()
{
$this->client = filter_var($_GET['client_id'], FILTER_SANITIZE_STRING);
$this->refId = filter_var($_GET['ref_id'], FILTER_SANITIZE_NUMBER_INT);
$this->client = isset($_GET['client_id']) ? filter_var($_GET['client_id'], FILTER_SANITIZE_STRING) : '';
$this->refId = isset($_GET['ref_id']) ? filter_var($_GET['ref_id'], FILTER_SANITIZE_NUMBER_INT) : 0;
ilInitialisationGuest::initIlias($this->client);
global $DIC; /** @var Container $DIC */
$this->dic = $DIC;
Expand Down

0 comments on commit 94de878

Please sign in to comment.