1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Fixes #4945 $_GET['configure'] was always being set in the admin area.

This commit is contained in:
Cameron 2023-01-05 15:47:12 -08:00
parent d2bb0d8a0b
commit f4373195a2

View File

@ -497,7 +497,7 @@ function getModal()
return '';
}
if(e_PAGE == 'menus.php' && vartrue($_GET['configure'])) // Menu Manager iFrame disable
if(e_PAGE == 'menus.php' && !empty($_GET['configure'])) // Menu Manager iFrame disable
{
return null;
}
@ -594,7 +594,7 @@ if($e107_popup != 1)
e107::renderLayout($ADMIN_MODAL . $ADMIN_HEADER, ['sc'=>'admin']);
}
elseif(!vartrue($_GET['configure']))
elseif(empty($_GET['configure']))
{
e107::css("inline", "body { padding:0px; margin:0; } "); // default padding for iFrame-only.
}