Commit 25f1dbd5 authored by Kulya's avatar Kulya 😊

Fix Rest CatalogGet param page to int

parent f428eb03
...@@ -116,8 +116,8 @@ require_once (__DIR__.'/keys.php'); ...@@ -116,8 +116,8 @@ require_once (__DIR__.'/keys.php');
public static function getCatalog($page=1,$cnt=1) { public static function getCatalog($page=1,$cnt=1) {
$result = static::callCurl("catalog.get",[ $result = static::callCurl("catalog.get",[
"PerPage" => $cnt, "PerPage" => (int)$cnt,
"Page" => $page, "Page" => (int)$page,
"Sort" => [ "Sort" => [
"type" => "num", "type" => "num",
"field" => "id", "field" => "id",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment