diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-08-06 00:01:56 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-08-13 10:45:25 +0200 |
commit | 1d219cf799b82babd0d31825e8d6fa03a20bf581 (patch) | |
tree | b4f184f0156f34e481e065ee947f4643ad941067 /lib/private/ocs | |
parent | 55dc74bba48704cc2478530300aece9396b7b191 (diff) | |
download | nextcloud-server-1d219cf799b82babd0d31825e8d6fa03a20bf581.tar.gz nextcloud-server-1d219cf799b82babd0d31825e8d6fa03a20bf581.zip |
With V2 we should ensure that the status codes are kept in sync
Diffstat (limited to 'lib/private/ocs')
-rw-r--r-- | lib/private/ocs/result.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/ocs/result.php b/lib/private/ocs/result.php index c4b0fbf33f3..42b6166b823 100644 --- a/lib/private/ocs/result.php +++ b/lib/private/ocs/result.php @@ -93,7 +93,7 @@ class OC_OCS_Result{ */ public function getMeta() { $meta = array(); - $meta['status'] = ($this->statusCode === 100) ? 'ok' : 'failure'; + $meta['status'] = $this->succeeded() ? 'ok' : 'failure'; $meta['statuscode'] = $this->statusCode; $meta['message'] = $this->message; if(isset($this->items)) { |