Fixing fatal error in getting token from request

8.0.x
Jody Hamilton 2012-04-16 15:42:18 -04:00 committed by Larry Garfield
parent fa78f9ac5c
commit f811458288
1 changed files with 2 additions and 1 deletions

View File

@ -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));
}