fixed a potential bug in projectbar
This commit is contained in:
parent
90b88057fd
commit
b875aba90d
@ -44,10 +44,26 @@ function show_projectbar ($con, $banner, $page, $ctxmenuitems)
|
||||
print "</div>";
|
||||
|
||||
print "<div class='subtitle'>";
|
||||
if ($type == 'project')
|
||||
if (isset($banner))
|
||||
{
|
||||
// anything?
|
||||
}
|
||||
else if ($type == 'project')
|
||||
{
|
||||
print htmlspecialchars($project->summary);
|
||||
}
|
||||
else if ($type == 'site')
|
||||
{
|
||||
// anything?
|
||||
}
|
||||
else if ($type == 'user')
|
||||
{
|
||||
// anything?
|
||||
}
|
||||
else
|
||||
{
|
||||
// anything?
|
||||
}
|
||||
print "</div>";
|
||||
|
||||
print '<div class="ctxmenu">';
|
||||
|
Loading…
Reference in New Issue
Block a user