summaryrefslogtreecommitdiffstats
path: root/lib/private/ocs
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-04-10 13:03:10 +0200
committerVincent Petry <pvince81@owncloud.com>2014-04-10 13:03:10 +0200
commit6cc578d1a7e8b2ff77d45baa81465b376f8049ef (patch)
tree46f9fede7afb9dc0b398380da38f69f1604e8efe /lib/private/ocs
parent8d05848391fc87f20d11176082820a91031a2b34 (diff)
parentb00592ade50f48b73002682494341c429a6a12eb (diff)
downloadnextcloud-server-6cc578d1a7e8b2ff77d45baa81465b376f8049ef.tar.gz
nextcloud-server-6cc578d1a7e8b2ff77d45baa81465b376f8049ef.zip
Merge pull request #8018 from owncloud/ocs_result_success_is_100
OC_OCS_Result Class, Only accept 100 code as success
Diffstat (limited to 'lib/private/ocs')
-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);
}