Commit f8114582 authored by Jody Lynn's avatar Jody Lynn Committed by Crell

Fixing fatal error in getting token from request

parent fa78f9ac
......@@ -688,7 +688,8 @@ function overlay_overlay_child_initialize() {
// it to the same content rendered in overlay_exit(), at the end of the page
// request. This allows us to check if anything actually did change, and, if
// so, trigger an immediate Ajax refresh of the parent window.
if (!empty($_POST) || isset(request()->query->get('token'))) {
$token = request()->query->get('token');
if (!empty($_POST) || isset($token)) {
foreach (overlay_supplemental_regions() as $region) {
overlay_store_rendered_content($region, overlay_render_region($region));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment