mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-23 23:08:39 +00:00
Fix uri path bug
This commit is contained in:
parent
46645f7f2b
commit
0733b0e705
|
|
@ -297,7 +297,7 @@ class Http implements UriInterface
|
|||
*/
|
||||
public function getPathElement(int $pos = null) : string
|
||||
{
|
||||
return explode('/', $this->path)[$pos];
|
||||
return explode('/', $this->path)[$pos] ?? '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user