mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Optimizing query output
This commit is contained in:
parent
a9186d802e
commit
7850d60b6c
|
|
@ -185,7 +185,7 @@ class UriFactory
|
|||
$pars[] = $key . '=' . $value;
|
||||
}
|
||||
|
||||
$url = $parts[0] . '?' . implode('&', $pars);
|
||||
return $parts[0] . (empty($pars) ? '' : '?' . implode('&', $pars));
|
||||
}
|
||||
|
||||
return $url;
|
||||
|
|
@ -224,8 +224,6 @@ class UriFactory
|
|||
str_replace('&', '?', $parsed);
|
||||
}
|
||||
|
||||
$parsed = self::unique($parsed);
|
||||
|
||||
return $parsed;
|
||||
return self::unique($parsed);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user