File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 160160$ t ->data ['dstName ' ] = $ dstName ;
161161
162162// Fetch privacypolicy
163- if (array_key_exists ('privacypolicy ' , $ state ['Destination ' ])) {
163+ if (array_key_exists ('PrivacyStatementURL ' , $ state ['Destination ' ]['UIInfo ' ]) && (!empty ($ state ['Destination ' ]['UIInfo ' ]['PrivacyStatementURL ' ]))) {
164+ $ privacypolicy = reset ($ state ['Destination ' ]['UIInfo ' ]['PrivacyStatementURL ' ]);
165+ } elseif (array_key_exists ('privacypolicy ' , $ state ['Destination ' ])) {
164166 $ privacypolicy = $ state ['Destination ' ]['privacypolicy ' ];
167+ } elseif (array_key_exists ('PrivacyStatementURL ' , $ state ['Source ' ]['UIInfo ' ]) && (!empty ($ state ['Source ' ]['UIInfo ' ]['PrivacyStatementURL ' ]))) {
168+ $ privacypolicy = reset ($ state ['Source ' ]['UIInfo ' ]['PrivacyStatementURL ' ]);
165169} elseif (array_key_exists ('privacypolicy ' , $ state ['Source ' ])) {
166170 $ privacypolicy = $ state ['Source ' ]['privacypolicy ' ];
167171} else {
You can’t perform that action at this time.
0 commit comments