From 0f9ff43bec9f532f2eecb6e4fc3b727e4229c2e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20P=C3=A9ntek?= Date: Thu, 9 Jun 2022 22:59:14 +0200 Subject: [PATCH] FIX:// fix for the ErrorCode field in ApiErrorModel class --- library/models/ApiErrorModel.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/library/models/ApiErrorModel.php b/library/models/ApiErrorModel.php index 2ac7b4a..a1192bf 100755 --- a/library/models/ApiErrorModel.php +++ b/library/models/ApiErrorModel.php @@ -19,8 +19,7 @@ class ApiErrorModel { public $ErrorCode; public $Title; - public $Description; - public $ErrorCode; + public $Description; public $HappenedAt; public $AuthData; public $EndPoint; @@ -30,8 +29,7 @@ function __construct() { $this->ErrorCode = ""; $this->Title = ""; - $this->Description = ""; - $this->ErrorCode = ""; + $this->Description = ""; $this->HappenedAt = ""; $this->AuthData = ""; $this->EndPoint = ""; @@ -43,8 +41,7 @@ public function fromJson($json) if (!empty($json)) { $this->ErrorCode = $json['ErrorCode']; $this->Title = $json['Title']; - $this->Description = $json['Description']; - $this->ErrorCode = $json['ErrorCode']; + $this->Description = $json['Description']; $this->HappenedAt = $json['HappenedAt']; $this->AuthData = $json['AuthData']; $this->EndPoint = $json['EndPoint'];