From 4175fe030b955a358d889da2986bc1181b642f4a Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Tue, 12 Aug 2008 12:48:24 +0200 Subject: [PATCH] Little optimisation to not lookup the starred info if anonymous user. --- src/IDF/Views/Issue.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/IDF/Views/Issue.php b/src/IDF/Views/Issue.php index 3a99df2..5742504 100644 --- a/src/IDF/Views/Issue.php +++ b/src/IDF/Views/Issue.php @@ -465,7 +465,8 @@ function IDF_Views_Issue_SummaryAndLabels($field, $issue, $extra='') $tags[] = sprintf('%s', $url, Pluf_esc((string) $tag)); } $s = ''; - if (Pluf_Model_InArray($issue->current_user, $issue->get_interested_list())) { + if (!$issue->current_user->isAnonymous() and + Pluf_Model_InArray($issue->current_user, $issue->get_interested_list())) { $s = ' '; } $out = '';