From d6ec0b2b5b34808e5ff8033466105f6462ee529b Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 4 Mar 2008 21:17:09 +0000 Subject: [PATCH] - web: fixed typo that cause bad (and slow) query when notifying user of friend acceptance on web svn path=/trunk/boinc/; revision=14840 --- checkin_notes | 7 +++++++ html/inc/friend.inc | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 0dbd79df2f..ab31dc6cdf 100644 --- a/checkin_notes +++ b/checkin_notes @@ -1830,3 +1830,10 @@ Charlie Mar 4 2008 ViewProjectsGrid.cpp,h ViewTransfersGrid.cpp,h ViewWorkGrid.cpp,h + +David Mar 4 2008 + - web: fixed typo that cause bad (and slow) query + when notifying user of friend acceptance on web + + html/inc + friend.inc diff --git a/html/inc/friend.inc b/html/inc/friend.inc index e04a10c39d..3882036f7d 100644 --- a/html/inc/friend.inc +++ b/html/inc/friend.inc @@ -9,7 +9,7 @@ function friend_notify_req_email_line($notify) { } function friend_notify_accept_email_line($notify) { - $src_user = BoincUser::lookup($notify->opaque); + $src_user = BoincUser::lookup_id($notify->opaque); if (!$src_user) return ""; return "$src_user->name has confirmed you as a friend"; }