Skip to content

Commit

Permalink
В случае ответа 0 - данные даты не заполняются
Browse files Browse the repository at this point in the history
  • Loading branch information
lashnev committed Jan 10, 2018
1 parent bf34cee commit 8bd2288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/BaseServiceResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 8bd2288

Please sign in to comment.