From b875aba90d9e511286e47053100a77c25c5ccb97 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sat, 25 Apr 2015 02:40:51 +0000 Subject: [PATCH] fixed a potential bug in projectbar --- codepot/src/codepot/views/projectbar.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/codepot/src/codepot/views/projectbar.php b/codepot/src/codepot/views/projectbar.php index bad2dd0c..24c98fe1 100644 --- a/codepot/src/codepot/views/projectbar.php +++ b/codepot/src/codepot/views/projectbar.php @@ -44,10 +44,26 @@ function show_projectbar ($con, $banner, $page, $ctxmenuitems) print ""; print "
"; - 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 "
"; print '
';