[Pkg-owncloud-commits] [owncloud] 17/85: Only accept success as 100 like the OCS spec does
David Prévot
taffit at moszumanska.debian.org
Tue Jun 17 19:12:41 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch 6.0
in repository owncloud.
commit 419e0354d5891df1e5d1248b44d800eab44311ca
Author: tomneedham <tom at owncloud.com>
Date: Wed Apr 2 15:50:51 2014 +0000
Only accept success as 100 like the OCS spec does
---
lib/private/ocs/result.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/private/ocs/result.php b/lib/private/ocs/result.php
index 9f14e8d..0e3b85d 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);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list