diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-02-15 10:03:48 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-02-15 10:03:48 +0100 |
commit | 11a9bd3e19cff16809c5f2e749267dc96e9d17f1 (patch) | |
tree | 4adfd4018a08ae0087dbfb0e47e813e0183fddb9 /lib/private | |
parent | 84de7a8d6356c4222f46b7b8139a4b6ac5f1aa96 (diff) | |
download | nextcloud-server-11a9bd3e19cff16809c5f2e749267dc96e9d17f1.tar.gz nextcloud-server-11a9bd3e19cff16809c5f2e749267dc96e9d17f1.zip |
Some OCS result psalm fixes
For #25641
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/OCS/Result.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/OCS/Result.php b/lib/private/OCS/Result.php index 0199783b47d..be2e6259309 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; |