diff --git a/lib/private/OCS/Result.php b/lib/private/OCS/Result.php index 0199783b47..be2e625930 100644 --- a/lib/private/OCS/Result.php +++ b/lib/private/OCS/Result.php @@ -104,10 +104,10 @@ class Result { $meta['status'] = $this->succeeded() ? 'ok' : 'failure'; $meta['statuscode'] = $this->statusCode; $meta['message'] = $this->message; - if (isset($this->items)) { + if ($this->items !== null) { $meta['totalitems'] = $this->items; } - if (isset($this->perPage)) { + if ($this->perPage !== null) { $meta['itemsperpage'] = $this->perPage; } return $meta;