Skip to content

Commit

Permalink
rebuild for #772
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee committed Mar 19, 2021
1 parent f45bee7 commit 6d96185
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions api.include.php
Expand Up @@ -6824,7 +6824,7 @@ public function serialize()
public function jsonSerialize()
{
return array_filter($this->serialize(), function ($v) {
return $v !== 0;
return $v !== -1;
});
}
}
Expand Down Expand Up @@ -10211,7 +10211,7 @@ public function serialize()
public function jsonSerialize()
{
return array_filter($this->serialize(), function ($v) {
return $v !== 0;
return $v !== -1;
});
}
}
Expand Down Expand Up @@ -10767,7 +10767,7 @@ public function _list(string $tableName, array $params): ListDocument
if (!$this->pagination->hasPage($params)) {
$offset = 0;
$limit = $this->pagination->getPageLimit($params);
$count = 0;
$count = -1;
} else {
$offset = $this->pagination->getPageOffset($params);
$limit = $this->pagination->getPageLimit($params);
Expand Down
6 changes: 3 additions & 3 deletions api.php
Expand Up @@ -6824,7 +6824,7 @@ public function serialize()
public function jsonSerialize()
{
return array_filter($this->serialize(), function ($v) {
return $v !== 0;
return $v !== -1;
});
}
}
Expand Down Expand Up @@ -10211,7 +10211,7 @@ public function serialize()
public function jsonSerialize()
{
return array_filter($this->serialize(), function ($v) {
return $v !== 0;
return $v !== -1;
});
}
}
Expand Down Expand Up @@ -10767,7 +10767,7 @@ public function _list(string $tableName, array $params): ListDocument
if (!$this->pagination->hasPage($params)) {
$offset = 0;
$limit = $this->pagination->getPageLimit($params);
$count = 0;
$count = -1;
} else {
$offset = $this->pagination->getPageOffset($params);
$limit = $this->pagination->getPageLimit($params);
Expand Down

0 comments on commit 6d96185

Please sign in to comment.