mirror of
https://github.com/getgrav/grav.git
synced 2026-02-23 07:01:26 +01:00
Fix undefined variable in Uri::query() part 2
This commit is contained in:
@@ -144,8 +144,8 @@ class Uri
|
||||
*/
|
||||
public function query($id = null, $raw = false)
|
||||
{
|
||||
if (isset($this->query[$id])) {
|
||||
return filter_var($this->query[$id], FILTER_SANITIZE_STRING) ;
|
||||
if (isset($id)) {
|
||||
return isset($this->query[$id]) ? filter_var($this->query[$id], FILTER_SANITIZE_STRING) : null;
|
||||
} else {
|
||||
if ($raw) {
|
||||
return $this->query;
|
||||
|
||||
Reference in New Issue
Block a user