From 6c7329049252e5c2b4eef872c7f3f0865e328c9c Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Wed, 30 Jan 2008 15:57:03 +0100 Subject: [PATCH] [svn r14202] invited users didn't appear in user report --- main/survey/survey.lib.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main/survey/survey.lib.php b/main/survey/survey.lib.php index 3e09063c19..8d2913f27a 100644 --- a/main/survey/survey.lib.php +++ b/main/survey/survey.lib.php @@ -924,9 +924,10 @@ class survey_manager if ($all_user_info) { $sql = "SELECT DISTINCT answered_user.user as invited_user, user.firstname, user.lastname, user.user_id - FROM $table_survey_answer answered_user, $table_user as user - WHERE answered_user.user = user.user_id - AND survey_id= '".Database::escape_string($survey_data['survey_id'])."'"; + FROM $table_survey_answer answered_user + LEFT JOIN $table_user as user + ON answered_user.user = user.user_id + WHERE survey_id= '".Database::escape_string($survey_data['survey_id'])."'"; } else {