Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Commit

Permalink
Fixed notice when the custom field comes with no value from prosperworks
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Pedretti committed Dec 15, 2017
1 parent 3fe5abc commit 9017980
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/SubResources/CustomField.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ public function getValue() {
}
return $values;
}
return $this->options[$this->value];

if (!empty($this->value)) {
return $this->options[$this->value];
} else
return false;
} else {
return $this->value;
}
Expand Down

0 comments on commit 9017980

Please sign in to comment.