diff --git a/LICENSE b/LICENSE index 33a047c..9b7c2a4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2016 Johannes Schobel +Copyright (c) 2017 Johannes Schobel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/JohannesSchobel/DingoQueryMapper/Parser/DingoQueryMapper.php b/src/JohannesSchobel/DingoQueryMapper/Parser/DingoQueryMapper.php index d7fe61e..8c0e1fc 100644 --- a/src/JohannesSchobel/DingoQueryMapper/Parser/DingoQueryMapper.php +++ b/src/JohannesSchobel/DingoQueryMapper/Parser/DingoQueryMapper.php @@ -20,7 +20,7 @@ class DingoQueryMapper // sort parameters protected $sort = []; // elements per page - protected $limit = 25; + protected $limit = 15; // page to display protected $page = 1; // offset of elements (page-1)*limit diff --git a/src/JohannesSchobel/DingoQueryMapper/Parser/UriParser.php b/src/JohannesSchobel/DingoQueryMapper/Parser/UriParser.php index 7c0028c..6e8f656 100644 --- a/src/JohannesSchobel/DingoQueryMapper/Parser/UriParser.php +++ b/src/JohannesSchobel/DingoQueryMapper/Parser/UriParser.php @@ -131,7 +131,7 @@ private function appendQueryParameter($parameter) { list($key, $value) = explode($operator, $parameter); - if(empty($value)) { + if(strlen($value) == 0) { return; }