diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-04-10 13:03:10 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-04-10 13:03:10 +0200 |
commit | 6cc578d1a7e8b2ff77d45baa81465b376f8049ef (patch) | |
tree | 46f9fede7afb9dc0b398380da38f69f1604e8efe /lib/private/ocs | |
parent | 8d05848391fc87f20d11176082820a91031a2b34 (diff) | |
parent | b00592ade50f48b73002682494341c429a6a12eb (diff) | |
download | nextcloud-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.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); } |