Skip to content

Commit

Permalink
Fix the issue #21
Browse files Browse the repository at this point in the history
  • Loading branch information
tbajorek committed Feb 19, 2018
1 parent 49c6a76 commit e1fab7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdk/Dotpay/Loader/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,9 @@ private function updateObjects(array $objects)
} catch (DotpayException $ex) {
}
$this->objects[$object->getClass()] = $object;
if (!empty($object->getAlias())) {
$this->aliases[$object->getAlias()] = $object;
$alias = $object->getAlias();
if (!empty($alias)) {
$this->aliases[$alias] = $object;
}
}
}
Expand Down

0 comments on commit e1fab7e

Please sign in to comment.