mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 06:48:41 +00:00
Fix empty query route
This commit is contained in:
parent
67ad863a56
commit
174d597682
|
|
@ -266,7 +266,8 @@ class Http implements UriInterface
|
||||||
*/
|
*/
|
||||||
public function getRoute() : string
|
public function getRoute() : string
|
||||||
{
|
{
|
||||||
return ($this->path ?? '') . '?' . $this->getQuery();
|
$query = $this->getQuery();
|
||||||
|
return ($this->path ?? '') . (!empty($query) ? '?' . $this->getQuery() : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user