Skip to content

Commit

Permalink
Update consent_manager_frontend.php
Browse files Browse the repository at this point in the history
Warnings verhindern
  • Loading branch information
aeberhard committed Apr 19, 2021
1 parent c711165 commit a8ed943
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/consent_manager_frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ public function setDomain($domain)
}
}
foreach ($this->cookiegroups as $cookiegroup) {
foreach ($cookiegroup['cookie_uids'] as $uid) {
if (isset($this->cache['cookies'][$_SESSION['consent_manager']['clang']][$uid])) {
$this->cookies[$uid] = $this->cache['cookies'][$_SESSION['consent_manager']['clang']][$uid];
$this->scripts[$uid] = $this->cache['cookies'][$_SESSION['consent_manager']['clang']][$uid]['script'];
if (isset($cookiegroup['cookie_uids'])) {
foreach ($cookiegroup['cookie_uids'] as $uid) {
if (isset($this->cache['cookies'][$_SESSION['consent_manager']['clang']][$uid])) {
$this->cookies[$uid] = $this->cache['cookies'][$_SESSION['consent_manager']['clang']][$uid];
$this->scripts[$uid] = $this->cache['cookies'][$_SESSION['consent_manager']['clang']][$uid]['script'];
}
}
}
$this->scripts = array_filter($this->scripts);
Expand Down

0 comments on commit a8ed943

Please sign in to comment.