File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/Plugin/os2web/DataLookup Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public function lookup($cvr) {
74
74
}
75
75
76
76
$ cvrResult = new CompanyLookupResult ();
77
- if ($ result && isset ($ result ->virksomhed ) && !empty ($ result ->virksomhed )) {
77
+ if ($ result && isset ($ result ->virksomhed ) && !empty (( array ) $ result ->virksomhed )) {
78
78
$ cvrResult ->setSuccessful ();
79
79
$ cvrResult ->setCvr ($ cvr );
80
80
Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ public function lookup($param) {
74
74
}
75
75
76
76
$ cvrResult = new CompanyLookupResult ();
77
- if ($ result && isset ($ result ->produktionsenhed ) && !empty ($ result ->produktionsenhed )) {
77
+ if ($ result && isset ($ result ->produktionsenhed ) && !empty (( array ) $ result ->produktionsenhed )) {
78
78
$ cvrResult ->setSuccessful ();
79
- $ cvrResult ->setCvr ($ result ->produktionsenhed ->tilknyttetVirksomhedsCVRNummer );
79
+ $ cvrResult ->setCvr ($ result ->produktionsenhed ->tilknyttetVirksomhedsCVRNummer ?? '' );
80
80
81
81
if ($ result ->produktionsenhedsnavn ) {
82
82
$ cvrResult ->setName ($ result ->produktionsenhedsnavn ->vaerdi );
You can’t perform that action at this time.
0 commit comments