MathRestbaseInterface: Only read properties we know exist

Horrible hack but will stop the bleeding, I imagine.

Bug: T121165
Change-Id: Ie81cc78e02771bee8ff2d6d492d6a3308bf6cd40
This commit is contained in:
James D. Forrester 2015-12-10 15:18:22 -08:00
parent b56535f005
commit 830fbbf071

View File

@ -80,8 +80,10 @@ class MathRestbaseInterface {
$this->identifiers = $json->identifiers; $this->identifiers = $json->identifiers;
return true; return true;
} else { } else {
if ( isset( $json->detail ) && isset( $json->detail->success ) ) {
$this->success = $json->detail->success; $this->success = $json->detail->success;
$this->error = $json->detail; $this->error = $json->detail;
}
return false; return false;
} }
} }