Correction
This commit is contained in:
parent
50e2d18520
commit
0b9a566e8f
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@
|
||||||
public static function execute(ClientRequest $request, RpcRequest $rpcRequest): ?SerializableInterface
|
public static function execute(ClientRequest $request, RpcRequest $rpcRequest): ?SerializableInterface
|
||||||
{
|
{
|
||||||
$limit = Configuration::getPoliciesConfiguration()->getGetContactsLimit();
|
$limit = Configuration::getPoliciesConfiguration()->getGetContactsLimit();
|
||||||
if($rpcRequest->containsParameter('limit', false))
|
if($rpcRequest->containsParameter('limit', true))
|
||||||
{
|
{
|
||||||
$limit = (int)$rpcRequest->getParameter('limit');
|
$limit = (int)$rpcRequest->getParameter('limit');
|
||||||
if($limit <= 0)
|
if($limit <= 0)
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$page = 0;
|
$page = 0;
|
||||||
if($rpcRequest->containsParameter('page', false))
|
if($rpcRequest->containsParameter('page', true))
|
||||||
{
|
{
|
||||||
$page = (int)$rpcRequest->getParameter('page');
|
$page = (int)$rpcRequest->getParameter('page');
|
||||||
if($page < 0)
|
if($page < 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue