File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ public function setAddress(string $address): void {
352
352
* The field value or the empty string if the field does not exist.
353
353
*/
354
354
public function getFieldValue (string $ field ): mixed {
355
- if (property_exists ($ this , $ field )) {
355
+ if (property_exists ($ this , $ field ) && isset ( $ this ->{ $ field }) ) {
356
356
return $ this ->{$ field };
357
357
}
358
358
Original file line number Diff line number Diff line change @@ -672,7 +672,7 @@ public function hasGuardian(string $cpr): bool {
672
672
* The value of the field or the empty string.
673
673
*/
674
674
public function getFieldValue (string $ field ): mixed {
675
- if (property_exists ($ this , $ field )) {
675
+ if (property_exists ($ this , $ field ) && isset ( $ this ->{ $ field }) ) {
676
676
return $ this ->{$ field };
677
677
}
678
678
You can’t perform that action at this time.
0 commit comments