diff --git a/src/MathMathMLCli.php b/src/MathMathMLCli.php index 6b4905a4e..81a24f6fc 100644 --- a/src/MathMathMLCli.php +++ b/src/MathMathMLCli.php @@ -70,7 +70,7 @@ class MathMathMLCli extends MathMathML { // cli interface seems to be OK. $this->processJsonResult( $response, 'file://' . $wgMathoidCli[0] ); $this->mathStyle = $response->mathoidStyle; - if ( array_key_exists( 'png', $response ) ) { + if ( property_exists( $response, 'png' ) ) { $this->png = implode( array_map( "chr", $response->png->data ) ); } else { LoggerFactory::getInstance( 'Math' )->error( 'Mathoid did not return a PNG image.' .