Minor optimisations

This commit is contained in:
Simon Sessingø
2016-10-27 19:15:38 +02:00
parent 2fd32868c2
commit 43e05ad821

View File

@@ -303,7 +303,7 @@ class RouterBase {
public function arrayToParams(array $getParams = null, $includeEmpty = true) {
if(is_array($getParams)) {
if(is_array($getParams) && count($getParams)) {
if ($includeEmpty === false) {
$getParams = array_filter($getParams, function ($item) {
return (!empty($item));