aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortomneedham <tom@owncloud.com>2014-04-02 15:50:51 +0000
committertomneedham <tom@owncloud.com>2014-04-02 15:50:51 +0000
commit6b017201b8753206236bf96b61c87224c6e41f41 (patch)
tree46353dfed240303669c2bd0e407528885ac0f3a3 /lib
parent16d10844cd01dc89f864cda6bde5169812e89b62 (diff)
downloadnextcloud-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.php2
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);
}