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:
parent
b56535f005
commit
830fbbf071
@ -80,8 +80,10 @@ class MathRestbaseInterface {
|
||||
$this->identifiers = $json->identifiers;
|
||||
return true;
|
||||
} else {
|
||||
$this->success = $json->detail->success;
|
||||
$this->error = $json->detail;
|
||||
if ( isset( $json->detail ) && isset( $json->detail->success ) ) {
|
||||
$this->success = $json->detail->success;
|
||||
$this->error = $json->detail;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user