From 830fbbf07101e5c90326213830882782c2b04901 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Thu, 10 Dec 2015 15:18:22 -0800 Subject: [PATCH] MathRestbaseInterface: Only read properties we know exist Horrible hack but will stop the bleeding, I imagine. Bug: T121165 Change-Id: Ie81cc78e02771bee8ff2d6d492d6a3308bf6cd40 --- MathRestbaseInterface.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MathRestbaseInterface.php b/MathRestbaseInterface.php index 20953d4..59fc1ec 100644 --- a/MathRestbaseInterface.php +++ b/MathRestbaseInterface.php @@ -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; } }