diff options
author | Sashi20 | 2019-09-24 12:15:40 +0530 |
---|---|---|
committer | Sashi20 | 2019-09-24 12:15:40 +0530 |
commit | a8bff8037b6198e0fa788bd733f17f5eec033d9a (patch) | |
tree | fde992add84773a3333461922938b4f56fe2673c /full_download.inc | |
parent | 94abd3880fcf0322b0aa81eecd3c948890d780d5 (diff) | |
download | DWSIM_lab_migration-a8bff8037b6198e0fa788bd733f17f5eec033d9a.tar.gz DWSIM_lab_migration-a8bff8037b6198e0fa788bd733f17f5eec033d9a.tar.bz2 DWSIM_lab_migration-a8bff8037b6198e0fa788bd733f17f5eec033d9a.zip |
Minor code changes
Diffstat (limited to 'full_download.inc')
-rwxr-xr-x | full_download.inc | 3 |
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 . '/'; |