diff --git a/MathRestbaseInterface.php b/MathRestbaseInterface.php index d2eef4f30..c8b18343d 100644 --- a/MathRestbaseInterface.php +++ b/MathRestbaseInterface.php @@ -401,10 +401,12 @@ class MathRestbaseInterface { } return $response['body']; } + // Remove "convenience" duplicate keys put in place by MultiHttpClient + unset( $response[0], $response[1], $response[2], $response[3], $response[4] ); $this->log()->error( 'Restbase math server problem:', [ 'request' => $request, 'response' => $response, - 'type' => $type, + 'math_type' => $type, 'tex' => $this->tex ] ); throw new MWException( "Cannot get $type. Server problem." );