diff --git a/lib/private/ocs/result.php b/lib/private/ocs/result.php index 9f14e8da7e..0e3b85d590 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); }