fixed a potential bug in projectbar

This commit is contained in:
hyung-hwan 2015-04-25 02:40:51 +00:00
parent 90b88057fd
commit b875aba90d

View File

@ -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">';