summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfull_download.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/full_download.inc b/full_download.inc
index 79c4983..e65c702 100755
--- a/full_download.inc
+++ b/full_download.inc
@@ -84,7 +84,7 @@ function lab_migration_download_full_lab()
/* creating zip archive on the server */
$zip = new ZipArchive;
$zip->open($zip_filename, ZipArchive::CREATE);
- /* approved solutions */
+
$query = db_select('lab_migration_experiment');
$query->fields('lab_migration_experiment');
$query->condition('proposal_id', $lab_id);
@@ -97,6 +97,7 @@ function lab_migration_download_full_lab()
$query->condition('experiment_id', $experiment_row->id);
$query->condition('approval_status', 1);
$solution_q = $query->execute();
+ /* approved solutions */
while ($solution_row = $solution_q->fetchObject())
{
$CODE_PATH = 'CODE' . $solution_row->code_number . '/';