fixed a potential bug in projectbar
This commit is contained in:
		| @ -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">'; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user