From b61b5c1fdc69fbca7f365cb8987af779a1ebcae8 Mon Sep 17 00:00:00 2001 From: Dan Werthimer Date: Thu, 17 Jul 2003 18:22:15 +0000 Subject: [PATCH] More minor bug fixes related to transitioning profiles to Koloth. svn path=/trunk/boinc/; revision=1707 --- html/user/profile_menu.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/html/user/profile_menu.php b/html/user/profile_menu.php index 40785a9fcf..8a340df361 100644 --- a/html/user/profile_menu.php +++ b/html/user/profile_menu.php @@ -68,9 +68,14 @@ function execute_command() { $userIds[] = $row[0]; } + if (count($userIds) == 0) { + echo "No profiles matched your query.
"; + exit(); + } + shuffle($userIds); - header("Location: " . MASTER_URL . "view_profile.php?userid=" . $userIds[0]); + header("Location: " . URL_BASE . "view_profile.php?userid=" . $userIds[0]); exit(); }