Skip to content

Commit

Permalink
Update eppContactPostalInfo.php
Browse files Browse the repository at this point in the history
checking existence of an array value for streets in if condition via isset is the more reliable approach here
  • Loading branch information
thomasmeike committed Dec 5, 2018
1 parent 3dc5dbc commit b36f2ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Protocols/EPP/eppData/eppContactPostalInfo.php
Expand Up @@ -75,7 +75,7 @@ public function addStreet($street) {
* @return string
*/
public function getStreet($line) {
if ($this->street[$line]) {
if (isset($this->street[$line])) {
return $this->street[$line];
}
return null;
Expand Down Expand Up @@ -214,4 +214,4 @@ public function setType($type) {
}
$this->type = $type;
}
}
}

0 comments on commit b36f2ea

Please sign in to comment.