Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
teodortalov#19 fix undefined index
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Burmester committed Jan 18, 2018
1 parent 08fc70f commit 56264cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
.idea/*
8 changes: 4 additions & 4 deletions src/Citrix/Entity/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ public function populate()
{
$data = $this->getData();

$this->firstName = $data['firstName'];
$this->lastName = $data['lastName'];
$this->email = $data['email'];
$this->firstName = $data['firstName'] ?? '';
$this->lastName = $data['lastName'] ?? '';
$this->email = $data['email'] ?? '';

if (isset($data['registrantKey'])) {
$this->id = $data['registrantKey'];
Expand Down Expand Up @@ -271,4 +271,4 @@ public function setTimeZone($timeZone)
}
}

?>
?>

0 comments on commit 56264cd

Please sign in to comment.