From a8bff8037b6198e0fa788bd733f17f5eec033d9a Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Tue, 24 Sep 2019 12:15:40 +0530 Subject: Minor code changes --- full_download.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 . '/'; -- cgit