From 8bd2288ecd619b479c7b6906959e8740499ddb0f Mon Sep 17 00:00:00 2001 From: lashnev Date: Wed, 10 Jan 2018 15:16:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=20=D1=81=D0=BB=D1=83=D1=87=D0=B0=D0=B5?= =?UTF-8?q?=20=D0=BE=D1=82=D0=B2=D0=B5=D1=82=D0=B0=200=20-=20=D0=B4=D0=B0?= =?UTF-8?q?=D0=BD=D0=BD=D1=8B=D0=B5=20=D0=B4=D0=B0=D1=82=D1=8B=20=D0=BD?= =?UTF-8?q?=D0=B5=20=D0=B7=D0=B0=D0=BF=D0=BE=D0=BB=D0=BD=D1=8F=D1=8E=D1=82?= =?UTF-8?q?=D1=81=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/BaseServiceResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/BaseServiceResponse.php b/src/services/BaseServiceResponse.php index 98e6090..708ef53 100644 --- a/src/services/BaseServiceResponse.php +++ b/src/services/BaseServiceResponse.php @@ -17,7 +17,7 @@ abstract class BaseServiceResponse { */ public function __construct(stdClass $response) { foreach (get_object_vars($this) as $name => $value) { - if (!empty($response->$name)) { + if (isset($response->$name)) { $this->$name = $response->$name; } }