Skip to content

Commit

Permalink
Merge pull request #17 from anhofmann/patch-1
Browse files Browse the repository at this point in the history
deal with empty result
  • Loading branch information
amenk authored Mar 21, 2024
2 parents 716335c + 40b9a93 commit 3a40c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UrlGeneratorService.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ private function addSid(string $url, ?\Illuminate\Routing\Route $route = null):
}

// Get the current query string and parameters
$queryString = parse_url($url, PHP_URL_QUERY);
$queryString = parse_url($url, PHP_URL_QUERY) ?? '';
parse_str($queryString, $queryParameters);

// Add the session to the query string if needed
Expand Down

0 comments on commit 3a40c4b

Please sign in to comment.