Commit c6ff3abd authored by Joachim Feltkamp's avatar Joachim Feltkamp
Browse files

Issue #3303250: WSOD while

parent 12740f13
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -87,8 +87,8 @@ function cookies_module_handler_page_attachments(&$page) {
        if ($protect && isset($entity_id)) {
          if (isset($head_tag[0]['#attributes'])) {
            if ($head_tag[0]['#attributes'] instanceof Attribute) {
              $head_tag[0]['#attributes']->setAttibute('data-cookies-js-id', [$entity_id]);
              $head_tag[0]['#attributes']->setAttibute('type', ['text/plain']);
              $head_tag[0]['#attributes']->setAttribute('data-cookies-js-id', [$entity_id]);
              $head_tag[0]['#attributes']->setAttribute('type', ['text/plain']);
            }
            elseif (is_array($head_tag[0]['#attributes'])) {
              $head_tag[0]['#attributes']['data-cookies-js-id'] = $entity_id;