From e3f0829d3fba27f5e5bf5bb6ce23573370cf751c Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 3 Oct 2013 12:17:14 +0200 Subject: [PATCH] Fixing query --- main/work/downloadfolder.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/work/downloadfolder.inc.php b/main/work/downloadfolder.inc.php index 6deb26046b..fc36aba045 100644 --- a/main/work/downloadfolder.inc.php +++ b/main/work/downloadfolder.inc.php @@ -81,7 +81,7 @@ if (api_is_allowed_to_edit()) { // Do another filter } else { // Only teachers - $userCondition = " AND props.insert_user_id='".api_get_user_id(); + $userCondition = " AND props.insert_user_id = ".api_get_user_id(); } //for other users, we need to create a zipfile with only visible files and folders @@ -95,7 +95,7 @@ if (api_is_allowed_to_edit()) { work.accepted = 1 AND work.active = 1 AND work.parent_id = $work_id AND - work.filetype='file' AND + work.filetype = 'file' AND props.visibility = '1' AND work.post_group_id = $groupId $userCondition