Fix this test. Fixes #5909

This commit is contained in:
jim-p 2016-02-19 13:58:56 -05:00
parent a9087de0f4
commit 44c30eb309

View File

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