mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix this test. Fixes #5909
This commit is contained in:
parent
a9087de0f4
commit
44c30eb309
@ -182,7 +182,7 @@ function return_ext_menu($section) {
|
||||
function output_menu($arrayitem, $target = null, $section = "") {
|
||||
foreach ($arrayitem as $item) {
|
||||
/* If the user has access to help pages, also show the full help menu. See #5909 */
|
||||
if (isAllowedPage($item[1]) || $item[1] == "/index.php?logout" || (($section = "Help") && isAllowedPage("help.php"))) {
|
||||
if (isAllowedPage($item[1]) || $item[1] == "/index.php?logout" || (($section == "Help") && isAllowedPage("help.php"))) {
|
||||
$attr = sprintf("href=\"%s\"", htmlentities($item[1]));
|
||||
if ($target) {
|
||||
$attr .= sprintf(" target=\"%s\"", htmlentities($target));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user