Only accept success as 100 like the OCS spec does

This commit is contained in:
tomneedham 2014-04-02 15:50:51 +00:00
parent 16d10844cd
commit 6b017201b8
1 changed files with 1 additions and 1 deletions

View 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);
}