mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-19 13:08:40 +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
|
||||
{
|
||||
return ($this->path ?? '') . '?' . $this->getQuery();
|
||||
$query = $this->getQuery();
|
||||
return ($this->path ?? '') . (!empty($query) ? '?' . $this->getQuery() : '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user