]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only accept success as 100 like the OCS spec does
authortomneedham <tom@owncloud.com>
Wed, 2 Apr 2014 15:50:51 +0000 (15:50 +0000)
committertomneedham <tom@owncloud.com>
Wed, 14 May 2014 19:24:08 +0000 (19:24 +0000)
lib/private/ocs/result.php

index 9f14e8da7e8d7b6499a3d138d425a835bf03973f..0e3b85d5905b1de2e1fedaae9224d36c537098a7 100644 (file)
@@ -96,7 +96,7 @@ class OC_OCS_Result{
         * @return bool
         */
        public function succeeded() {
-               return (substr($this->statusCode, 0, 1) === '1');
+               return ($this->statusCode == 100);
        }