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

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