From 2e747fb7f6df859c007d1769628be2820db80df9 Mon Sep 17 00:00:00 2001 From: Chris Mueller Date: Wed, 16 Nov 2011 13:24:30 -0800 Subject: [PATCH] This is an object, not an array. --- poundpay.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poundpay.php b/poundpay.php index 4250e0e..20eab49 100755 --- a/poundpay.php +++ b/poundpay.php @@ -201,8 +201,8 @@ public function __construct($url, $text, $status_code) { $this->is_error = FALSE; if($this->error_msg = ($status_code >= 400)) { $this->is_error = TRUE; - $this->error_name = $this->response_json['error_name']; - $this->error_msg = $this->response_json['error_message']; + $this->error_name = $this->response_json->error_name; + $this->error_msg = $this->response_json->error_message; } }