diff options
author | tomneedham <tom@owncloud.com> | 2014-04-02 15:50:51 +0000 |
---|---|---|
committer | tomneedham <tom@owncloud.com> | 2014-04-02 15:50:51 +0000 |
commit | 6b017201b8753206236bf96b61c87224c6e41f41 (patch) | |
tree | 46353dfed240303669c2bd0e407528885ac0f3a3 /lib | |
parent | 16d10844cd01dc89f864cda6bde5169812e89b62 (diff) | |
download | nextcloud-server-6b017201b8753206236bf96b61c87224c6e41f41.tar.gz nextcloud-server-6b017201b8753206236bf96b61c87224c6e41f41.zip |
Only accept success as 100 like the OCS spec does
Diffstat (limited to 'lib')
-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 9f14e8da7e8..0e3b85d5905 100644 --- a/lib/private/ocs/result.php +++ b/lib/private/ocs/result.php @@ -96,7 +96,7 @@ class OC_OCS_Result{ * @return bool */ public function succeeded() { - return (substr($this->statusCode, 0, 1) === '1'); + return ($this->statusCode == 100); } |