Index: www/search/include/renderers/ProjectHtmlSearchRenderer.class.php =================================================================== --- www/search/include/renderers/ProjectHtmlSearchRenderer.class.php (revision 446) +++ www/search/include/renderers/ProjectHtmlSearchRenderer.class.php (revision 447) @@ -92,8 +92,7 @@ $project_name = $this->getResultId('unix_group_name'); $project_id = $this->getResultId('group_id'); if (forge_get_config('use_fti')) { // If FTI is being used, the project name returned by the query will be "projectname", so // we remove the HTML code (otherwise we'd get an error) @@ -107,8 +106,10 @@ + if (forge_check_perm ('project_read', $project_id)) { header('Location: '.util_make_url_g($project_name,$project_id)); + } else { + $this->writeHeader(); + $this->writeHeader(); + $html = '
'.sprintf(_('No matches found for %1$s'), $project_name).'
'; + echo $html; + $this->writeFooter(); + } }