From 2f1643fb234a308b3775c5b2ab64d5e71ea9ce4c Mon Sep 17 00:00:00 2001 From: azammitdcarf Date: Tue, 8 Feb 2011 22:11:49 +0000 Subject: [PATCH] Only show enabled questionnaires to clients --- client/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/client/index.php b/client/index.php index c202b0e9..d0b4b879 100644 --- a/client/index.php +++ b/client/index.php @@ -64,6 +64,7 @@ if ($client_id) $sql = "SELECT q.questionnaire_id,q.description FROM questionnaire as q, client_questionnaire as cq WHERE cq.questionnaire_id = q.questionnaire_id + AND q.enabled = 1 AND cq.client_id = '$client_id'"; $qs = $db->GetAll($sql);