Fix PhanTypeSuspiciousStringExpression
This commit is contained in:
parent
0284ef4b66
commit
02ea350a34
1 changed files with 1 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ function print_auguria_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout
|
|||
|
||||
// Complete param to force leftmenu to '' to close open menu when we click on a link with no leftmenu defined.
|
||||
if ((!preg_match('/mainmenu/i', $param)) && (!preg_match('/leftmenu/i', $param)) && !empty($newTabMenu[$i]['url'])) {
|
||||
// @phan-suppress-next-line PhanTypeSuspiciousStringExpression
|
||||
$param .= ($param ? '&' : '').'mainmenu='.$newTabMenu[$i]['mainmenu'].'&leftmenu=';
|
||||
}
|
||||
if ((!preg_match('/mainmenu/i', $param)) && (!preg_match('/leftmenu/i', $param)) && empty($newTabMenu[$i]['url'])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue